Пример #1
0
 private void InitializeManager()
 {
     player          = GameObject.Find("Player");
     playerHpManager = player.GetComponent <PlayerHpManager>();
     playerHpManager.PlayerHasDied += closeScene;
     Debug.Log("kek");
 }
Пример #2
0
 private void InitializeManager()
 {
     player                      = GameObject.Find("Player");
     playerHpManager             = player.GetComponent <PlayerHpManager>();
     playerController            = player.GetComponent <PlayerController>();
     playerClimbing              = player.GetComponent <PlayerClimbing>();
     rigidBody2D                 = player.GetComponent <Rigidbody2D>();
     animator                    = player.GetComponent <Animator>();
     playerHpManager.PlayerDied += closeScene;
     whatIsGround                = serializeWhatIsGround;
     Debug.Log((int)whatIsGround);
 }