Ejemplo n.º 1
0
        void Awake()
        {
            FollowOnSight.Target = transform;
            _driver = FindObjectOfType <DriverController>();
            _driver.gameObject.SetActive(false);
            _turret         = GetComponentInChildren <TurretController>();
            _landingZones   = GetComponentsInChildren <TriggerDetection>().ToList();
            _cameraFollower = Camera.main.GetComponent <Follower>();

            var interactible = GetComponent <Interactible>();

            interactible.OnInteraction += ActivateCar;

            _wheels = GetComponentsInChildren <WheelRotation>();

            _switchManager = FindObjectOfType <SwitchManager>();
        }