Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        next_level = GameObject.Find("Goal");
        nl         = next_level.GetComponent <Next_Level>();

        les_anim         = GetComponent <Les_animations>();
        pm               = GetComponent <PlayerMovement>();
        player_health    = 5;
        number_of_hearts = player_health;
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     les_Animations = GetComponent <Les_animations>();
 }
Esempio n. 3
0
 // Start is called before the first frame update
 void Start()
 {
     anim = GetComponent <Les_animations>();
     pm   = GetComponent <PlayerMovement>();
 }