private void SpawnPlayerAtDestination() { player = GameObject.FindGameObjectWithTag(PLAYER_TAG); Mover mover = player.GetComponent <Mover>(); mover.DisableMover(); Vector3 position = GetDestinationPosition(); player.transform.position = position; mover.EnableMover(); }
private void DeadBehaviour() { fighter.CancelAttack(); mover.DisableMover(); }