// Start is called before the first frame update void Start() { controller = GetComponent <CharacterController>(); ratControl = FindObjectOfType <RatControl>(); shadowControl = FindObjectOfType <ShadowControl>(); psychicControl = FindObjectOfType <PsychicControl>(); }
void Start() { ratControl = FindObjectOfType <RatControl>(); shadowControl = FindObjectOfType <ShadowControl>(); rat = GameObject.Find("Rat"); shadow = GameObject.Find("Shadow"); }
private void Awake() { Dust = gameObject.GetComponentInChildren <TrailDustController>(); playerRB = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Rigidbody>(); PlayerCollider = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Collider>(); CamScript = Camera.main.GetComponent <CameraController>(); playertoy = GameObject.Find("PlayerToy"); Shadow = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <ShadowControl>(); BoostCoolDown = BoostDuration + 5.0f; }