예제 #1
0
파일: Portal.cs 프로젝트: dorOzDev/RPG-game
        private void SpawnPlayerAtDestination()
        {
            player = GameObject.FindGameObjectWithTag(PLAYER_TAG);

            Mover mover = player.GetComponent <Mover>();

            mover.DisableMover();

            Vector3 position = GetDestinationPosition();

            player.transform.position = position;

            mover.EnableMover();
        }
예제 #2
0
 private void DeadBehaviour()
 {
     fighter.CancelAttack();
     mover.DisableMover();
 }