basically the whole game
This commit is contained in:
parent
949135cecb
commit
96dcfa9064
315 changed files with 34386 additions and 396 deletions
|
|
@ -0,0 +1,17 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class BossMovesToARandomPositionForNoReason : EnemyAbility
|
||||
{
|
||||
//i hope you like the script name
|
||||
//because the bosses in touhou do this
|
||||
//anyways
|
||||
[SerializeField] private Enemy thisEnemy;
|
||||
protected override void AbilityEffects()
|
||||
{
|
||||
StopCoroutine(thisEnemy.currentMovementRoutine);
|
||||
Vector3 newPosition = WaveManager.instance.GetRandomEnemyPoint();
|
||||
thisEnemy.originalPosition = newPosition;
|
||||
StartCoroutine(thisEnemy.MoveToPosition(thisEnemy.transform.position,
|
||||
newPosition, thisEnemy.moveSpeed));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue