Exemplo n.º 1
0
    void Awake()
    {
        player       = GameObject.FindGameObjectWithTag("Player");
        playerHealth = player.GetComponent <Health>();

        HM           = GameObject.FindGameObjectWithTag("MainCamera");
        heartManager = HM.GetComponent <HeartManagment>();
    }
Exemplo n.º 2
0
 void Awake()
 {
     HM           = GameObject.FindGameObjectWithTag("MainCamera");
     heartManager = HM.GetComponent <HeartManagment>();
 }