예제 #1
0
 public static TardisSingleton GetInstance()
 {
     if (instance == null)
     {
         instance = new TardisSingleton();
     }
     return(instance);
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     singleton             = TardisSingleton.GetInstance();
     rotorWhiteLights      = new TardisLight("TimeRotorWhiteLight");
     orangeEngineLights    = new TardisLight("EngineLight");
     wallRoundYellowLights = new TardisLight("WallDecorationYellowLight");
     topLights             = new RotatingLight("MainLight", true);
     topRealLights         = new RealRotatingLight("Light");
     catwalkLights         = new TardisLight("CatwalkLight");
     bottomWallBlueLight   = new TardisLight("LongBlueLight");
     topWallBlueLight      = new TardisLight("WallDecorationBlueLight");
     topWallOrangeLight    = new TardisLight("WallDecorationOrangeLight");
 }
예제 #3
0
 // Start is called before the first frame update
 void Start()
 {
     singleton = TardisSingleton.GetInstance();
     step      = (Mathf.PI / 180.0f) * 20.0f;
     step     *= (clockwise) ? -1 : 1;
 }
예제 #4
0
    // Start is called before the first frame update
    void Start()
    {
        singleton = TardisSingleton.GetInstance();

        StartCoroutine(TardisMainCouroutine());
    }
예제 #5
0
 // Start is called before the first frame update
 void Start()
 {
     audioSource = gameObject.AddComponent <AudioSource>();
     singleton   = TardisSingleton.GetInstance();
     lastState   = TardisState.Flying; //Tout sauf Shutdown
 }