Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     gss = gameObject.GetComponent <GameScoreScript>();
     hps = gameObject.GetComponent <HealthPointsScript>();
     pis = gameObject.GetComponent <PlayerInventoryScript>();
     pc  = gameObject.GetComponent <PlayerController>();
 }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject Player = GameObject.FindWithTag("Player");

        if (Player != null)
        {
            gss = Player.GetComponent <GameScoreScript>();
        }
    }
    // Start is called before the first frame update
    void Start()
    {
        health = MaxHealth;
        if (HealthBar != null)
        {
            hbs = HealthBar.GetComponent <HealthBarScript>();
        }
        GameObject Player = GameObject.FindWithTag("Player");

        if (Player != null)
        {
            gss = Player.GetComponent <GameScoreScript>();
        }
        css = GetComponent <CatSaveScript>();
    }