Ejemplo n.º 1
0
 private void OnNewFloor()
 {
     if (storedPlayer)
     {
         PlayerResponsibleForDisplacement displacing = storedPlayer.gameObject.GetOrAddComponent <PlayerResponsibleForDisplacement>();
     }
 }
Ejemplo n.º 2
0
        protected override void OnPickedUpByPlayer(PlayerController player)
        {
            if (!everPickedUpByPlayer)
            {
                listOfDisplacedEnemies.DisplacedEnemies.Clear();
                GameManager.Instance.OnNewLevelFullyLoaded += this.OnNewFloor;
                PlayerResponsibleForDisplacement displacing = player.gameObject.GetOrAddComponent <PlayerResponsibleForDisplacement>();
            }
            storedPlayer = player;

            base.OnPickedUpByPlayer(player);
        }