コード例 #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;
        }
コード例 #2
0
ファイル: Pearl.cs プロジェクト: homodudu/Dolphonica
        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;
        }