Exemplo n.º 1
0
        }                                                           // The object pool the laser belongs to.


        private void Awake()
        {
            m_RigidBody = GetComponent <Rigidbody>();
            //m_FlyerMovementController = GetComponentInParent<FlyerMovementController>();
            m_FlyerMovementController = FindObjectOfType <FlyerMovementController>();

            m_Speed = m_FlyerMovementController.Speed * SpeedMultiplier;
        }
Exemplo n.º 2
0
        private void Awake()
        {
            m_RigidBody = GetComponent <Rigidbody>();

            m_FlyerHealthController   = FindObjectOfType <FlyerHealthController>();
            m_FlyerMovementController = FindObjectOfType <FlyerMovementController>();

            m_Flyer   = m_FlyerHealthController.gameObject;
            m_Dolphin = FindObjectOfType <DolphinScript>();
            m_Cam     = Camera.main.transform;
        }