// 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>(); }
// 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>(); }