Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     controller     = GetComponent <CharacterController>();
     ratControl     = FindObjectOfType <RatControl>();
     shadowControl  = FindObjectOfType <ShadowControl>();
     psychicControl = FindObjectOfType <PsychicControl>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     ratControl    = FindObjectOfType <RatControl>();
     shadowControl = FindObjectOfType <ShadowControl>();
     rat           = GameObject.Find("Rat");
     shadow        = GameObject.Find("Shadow");
 }
Ejemplo n.º 3
0
 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;
 }