MusicBeat
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Cielonos.MainGame.Characters
|
||||
}
|
||||
|
||||
SetupDash(inputDirection, true, length);
|
||||
//player.vfxData.SpawnVFX("PerfectDodgeLine", player, player.bodyPartsSc.head);
|
||||
};
|
||||
player.operationSc.OnDodge += (length)=>
|
||||
{
|
||||
@@ -40,6 +41,7 @@ namespace Cielonos.MainGame.Characters
|
||||
}
|
||||
|
||||
SetupDodge(length);
|
||||
//player.vfxData.SpawnVFX("PerfectDodgeLine", player, player.bodyPartsSc.head);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -26,14 +26,17 @@ namespace Cielonos.MainGame.Characters
|
||||
RegisterOperations();
|
||||
backpackSm ??= new BackpackSubmodule(this);
|
||||
equipmentSm ??= new EquipmentSubmodule(this);
|
||||
|
||||
|
||||
backpackSm.ObtainItem<FutureWand>();
|
||||
backpackSm.ObtainItem<Polychrome>();
|
||||
//backpackSm.ObtainItem<DualHarmony>();
|
||||
backpackSm.ObtainItem<FutureWand>();
|
||||
backpackSm.ObtainItem<Ascension>();
|
||||
backpackSm.ObtainItem<BellowsThruster>();
|
||||
backpackSm.ObtainItem<BlackHoleDisplacer>();
|
||||
backpackSm.ObtainItem<DecayPropagator>();
|
||||
backpackSm.ObtainItem<QuantumShieldGenerator>();
|
||||
backpackSm.ObtainItem<DecayAccelerationCoil>();
|
||||
backpackSm.ObtainItem<FusionInjector>();
|
||||
backpackSm.ObtainItem<MissileSeparationMembrane>();
|
||||
|
||||
foreach (MainWeaponBase mainWeapon in backpackSm.mainWeapons)
|
||||
{
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Cielonos.MainGame.Characters
|
||||
public bool isDuringCameraSwitch;
|
||||
private const float CameraSwitchCooldown = 0.25f;
|
||||
|
||||
public CharacterBase lockTarget;
|
||||
public Enemy lockTarget;
|
||||
private float lastTargetSwitchTime;
|
||||
private const float TargetSwitchCooldown = 0.25f;
|
||||
public Transform targetPoint;
|
||||
@@ -90,7 +90,7 @@ namespace Cielonos.MainGame.Characters
|
||||
{
|
||||
if(isDuringCameraSwitch) return;
|
||||
|
||||
CharacterBase target = CombatManager.EnemySm.GetNearestEnemy(50f);
|
||||
Enemy target = CombatManager.EnemySm.GetNearestEnemy(50f);
|
||||
|
||||
if (target != null)
|
||||
{
|
||||
@@ -168,7 +168,7 @@ namespace Cielonos.MainGame.Characters
|
||||
|
||||
if (Time.time - lastTargetSwitchTime < TargetSwitchCooldown) return;
|
||||
|
||||
List<CharacterBase> sortedEnemies = CombatManager.EnemySm.GetVisibleEnemiesSortedByScreenX();
|
||||
List<Enemy> sortedEnemies = CombatManager.EnemySm.GetVisibleEnemiesSortedByScreenX();
|
||||
if (sortedEnemies.Count <= 1) return;
|
||||
|
||||
int currentIndex = sortedEnemies.IndexOf(lockTarget);
|
||||
@@ -198,7 +198,7 @@ namespace Cielonos.MainGame.Characters
|
||||
SetNewTarget(sortedEnemies[newIndex]);
|
||||
}
|
||||
|
||||
private void SetNewTarget(CharacterBase newTarget)
|
||||
private void SetNewTarget(Enemy newTarget)
|
||||
{
|
||||
if (lockTarget != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user