private void Start()
        {
            // Set up the reference to the aeroplane controller.
            m_Aeroplane = GetComponent<SpaceShipController>();

            m_sSceneMode = Application.loadedLevelName.Split('_');
        }
Ejemplo n.º 2
0
//		public Transform Target2;

        // setup script properties
        private void Awake()
        {
            // get the reference to the aeroplane controller, so we can send move input to it and read its current state.
            m_AeroplaneController = GetComponent <SpaceShipController>();

            // pick a random perlin starting point for lateral wandering
            m_RandomPerlin = Random.Range(0f, 180f);
            myTransform    = transform;
        }
 private void Awake()
 {
     // Set up the reference to the aeroplane controller.
     m_Aeroplane = GetComponent<SpaceShipController>();
 }
Ejemplo n.º 4
0
        //        public Transform Target2;
        // setup script properties
        private void Awake()
        {
            // get the reference to the aeroplane controller, so we can send move input to it and read its current state.
            m_AeroplaneController = GetComponent<SpaceShipController>();

            // pick a random perlin starting point for lateral wandering
            m_RandomPerlin = Random.Range(0f,180f);
            myTransform = transform;
        }
 private void Awake()
 {
     // Set up the reference to the aeroplane controller.
     m_Aeroplane = GetComponent <SpaceShipController>();
 }
Ejemplo n.º 6
0
        private void Awake()
        {
            // get the reference to the aeroplane controller, so we can send move input to it and read its current state.
            m_AeroplaneController = GetComponent<SpaceShipController>();

            // pick a random perlin starting point for lateral wandering
            m_RandomPerlin = Random.Range(0f,180f);
            EchangeCible=GameObject.FindWithTag("Ennemy").transform;
            Cible=GameObject.FindWithTag("BaseEnnemy").transform;
            //	Asteroid=GameObject.FindWithTag("Object").transform;;
            //Ast=GameObject.FindWithTag("Base").transform;
            //Allier=GameObject.FindWithTag("Allier").transform;
            myTransform = transform;
            rb = GetComponent<Rigidbody> ();
            //SetTarget (Cible);
            //m_chasse=true;
        }