protected virtual void Awake() { _defaultColor = GetComponent <SpriteRenderer>().color; AngleDefinition = GetComponent <AngleDefinition>(); KillHandler = GetComponent <UnitKillHandler>(); EnemyUnitMovementController = new EnemyUnitMovementController(this); KillHandler.OnDeath += RemoveFromUnitManager; }
public void MoveFromSpawn(Vector2 point) { EnemyUnitMovementController.RequestSpawnPath(point); }
protected virtual void Update() { CurrentNode = NodeGrid.Instance.NodeFromWorldPosition(transform.position); EnemyUnitMovementController.Tick(); }