void Awake() { m_anim = GetComponent <PlayerAnim>(); m_controller = GetComponent <PlayerController>(); m_forces = GetComponent <PlayerForces>(); m_dev = GetComponent <PlayerDevToss>(); m_guide = GetComponent <PlayerGuideToss>(); m_stats = new PlayerStats(m_startHealth); }
void Start () { playerScript=parent.gameObject.GetComponent<PlayerForces>(); //StartCoroutine("CamOrient"); }
void Start () { player=GameObject.Find("player").transform; target=GameObject.Find("CamTarget").transform; script=player.gameObject.GetComponent<PlayerForces>(); }
private void Start() { thePlayer = FindObjectOfType <PlayerForces>(); StartCoroutine(RunGame()); }
TrailRenderer trailRenderer; // Store the TrailRenderer here so we don't have to keep retrieving it using GetComponent(). #endregion private void Start() { thePlayer = FindObjectOfType <PlayerForces>(); trailRenderer = GetComponentInChildren <TrailRenderer>(); }