// Use this for initialization void Start() { nav = GetComponent <NavMeshAgent> (); otherCamera = GameObject.FindGameObjectsWithTag("MainCamera"); script = GetComponent <Digimon_Behaviour> (); evolving = true; animation = GetComponent <Animation> (); //to reduce the GetComponent calls we use the new references created to hold the values partner_Stats = partner.GetComponent <Partner_Stats>(); scr_Hour = _Day.GetComponent <DigiTime>(); }
// Use this for initialization void Start() { nav = GetComponent<NavMeshAgent> (); otherCamera = GameObject.FindGameObjectsWithTag("MainCamera"); script = GetComponent<Digimon_Behaviour> (); evolving = true; animation = GetComponent<Animation> (); //to reduce the GetComponent calls we use the new references created to hold the values partner_Stats = partner.GetComponent<Partner_Stats>(); scr_Hour = _Day.GetComponent<DigiTime>(); }