Ejemplo n.º 1
0
 void Awake()
 {
     if (mInstance == null)
     {
         mInstance = this as CameraFade;
         instance.init();
     }
 }
Ejemplo n.º 2
0
	void Awake()
	{
		if( mInstance == null )
		{
			mInstance = this as CameraFade;
			instance.init();
		}
	}
Ejemplo n.º 3
0
        // Utilize the Vehicle Factory here to create any vehicles that need to be made at the beginning of the scenario
        // It is probably a good idea to instantiate all of the vehicles that will be used at this time, and just disable
        // the ones that shouldn't be visible yet
        void Awake()
        {
            CameraFade.StartAlphaFade(Color.black, true, 4f);

            Initialize <States> ();
            //Instantiate (UserCar, new Vector3 (21.11f, 0.14f, 14.4f), Quaternion.identity);
            UserCar.SetActive(false);

            // Grab reference to vehicle spawn controller
            //manufacturer = GetComponent<SpawnController> ();

            // Set the initial state here
            ChangeState(States.AIDriving);
        }
Ejemplo n.º 4
0
	void OnApplicationQuit()
	{
		mInstance = null;
	}
Ejemplo n.º 5
0
	void Die()
	{
		mInstance = null;
		Destroy(gameObject);
	}
Ejemplo n.º 6
0
 void OnApplicationQuit()
 {
     mInstance = null;
 }
Ejemplo n.º 7
0
 void Die()
 {
     mInstance = null;
     Destroy(gameObject);
 }