Beispiel #1
0
        // Use this for initialization
        private void Start()
        {
            _controller = gameObject.GetComponent<AirplaneController>();

            // Find target
            _target = GameObject.Find("Player");

            LookNearTarget();

            _currentAngle = transform.rotation.eulerAngles.z;

            if (Random.Range(0, 3) == 0)
                _chaseTarget = false;

            // Set random rotate timer
            _rotateTimer = Random.Range(1F, 4F);
        }
 private void Start()
 {
     _controller = gameObject.GetComponent<AirplaneController>();
 }