Esempio n. 1
0
        void Awake()
        {
            // Set up a bike with a human driver and jet engine
            IEngine jetEngine   = new JetEngine();
            IDriver humanDriver = new HumanDriver();

            m_PlayerBike.SetEngine(jetEngine);
            m_PlayerBike.SetDriver(humanDriver);
            //m_PlayerBike.StartEngine();

            // Set up a bike with an android AI driver and a nitro engine
            IEngine nitroEngine   = new NitroEngine();
            IDriver androidDriver = new AndroidDriver();

            m_AndroidBike.SetEngine(nitroEngine);
            m_AndroidBike.SetDriver(androidDriver);
            //m_AndroidBike.StartEngine();

            // Set up a bike with an alien AI driver and a solar engine
            IEngine solarEngine = new SolarEngine();
            IDriver alienDriver = new AlienDriver();

            m_AlienBike.SetEngine(solarEngine);
            m_AlienBike.SetDriver(alienDriver);
            //m_AlienBike.StartEngine();

            // Set up a bike with a golem driver and an anchient engine
            IEngine anchientEngine = new AnchientEngine();
            IDriver golemDriver    = new GolemDriver();

            m_GolemBike.SetEngine(anchientEngine);
            m_GolemBike.SetDriver(golemDriver);
            // m_GolemBike.StartEngine();
        }
        void Awake()
        {
            // Set up a bike with a human driver and jet engine
            IEngine jetEngine   = new JetEngine();
            IDriver humanDriver = new HumanDriver();

            m_PlayerPlane.SetEngine(jetEngine);
            m_PlayerPlane.SetDriver(humanDriver);
            m_PlayerPlane.StartEngine();

            // Set up a bike with a AI driver and a nitro engine
            IEngine nitroEngine   = new NitroEngine();
            IDriver androidDriver = new AndroidDriver();

            m_AndroidPlane.SetEngine(nitroEngine);
            m_AndroidPlane.SetDriver(androidDriver);
            m_AndroidPlane.StartEngine();

            // Set up a bike with a alien driver and a world engine
            IEngine worldEngine = new WorldEngine();
            IDriver alienDriver = new AlienDriver();

            m_AlienPlane.SetEngine(worldEngine);
            m_AlienPlane.SetDriver(alienDriver);
            m_AlienPlane.StartEngine();

            // Set up a bike with a chicken driver and a hydro engine
            IEngine hydroEngine   = new HydroEngine();
            IDriver chickenDriver = new ChickenDriver();

            m_ChickenPlane.SetEngine(hydroEngine);
            m_ChickenPlane.SetDriver(chickenDriver);
            m_ChickenPlane.StartEngine();
        }
Esempio n. 3
0
        private void Awake()
        {
            IEngine jetEngine   = new JetEngine();
            IDriver humanDriver = new HumanDriver();

            mPlayerBike.SetEngine(jetEngine);
            mPlayerBike.SetDriver(humanDriver);
            mPlayerBike.StartEngine();

            IEngine nitroEngine   = new NitroEngine();
            IDriver androidDriver = new AndroidDriver();

            mAndroidBike.SetEngine(nitroEngine);
            mAndroidBike.SetDriver(androidDriver);
            mAndroidBike.StartEngine();

            IEngine rocketEngine = new RocketEngine();
            IDriver alienDriver  = new AlienDriver();

            mAlienBike.SetEngine(rocketEngine);
            mAlienBike.SetDriver(alienDriver);
            mAlienBike.StartEngine();

            IEngine steamEngine     = new SteamEngine();
            IDriver steampunkDriver = new SteampunkDriver();

            mSteampunkBike.SetEngine(steamEngine);
            mSteampunkBike.SetDriver(steampunkDriver);
            mSteampunkBike.StartEngine();
        }