Ejemplo n.º 1
0
    void Awake()
    {
        hash  = GameObject.FindGameObjectWithTag(Tags.dataController).GetComponent <HashIDs>();
        death = GameObject.FindGameObjectWithTag(Tags.gameController).GetComponent <HandleDeath>();

        if (GetComponentInChildren <Animator>() != null)
        {
            anim = GetComponentInChildren <Animator>();
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     moveWithBoat = GameObject.FindGameObjectWithTag("Player").GetComponent <HandleDeath>();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     death = GameObject.FindGameObjectWithTag(Tags.gameController).GetComponent <HandleDeath>();
     ChangeLivesGUI(StaticVariables.lives);
 }
Ejemplo n.º 4
0
 private void Start()
 {
     lives       = DifficultyManager.getLives();
     maxHealth   = health;
     handleDeath = GetComponent <HandleDeath>();
 }