Beispiel #1
0
 private void Awake()
 {
     if (PlatformCreater.instance != null)
     {
         Destroy(gameObject);
         return;
     }
     PlatformCreater.instance = this;
 }
Beispiel #2
0
        // Use this for initialization
        override public void ExtendedStart()
        {
            switch ((GameName)System.Enum.Parse(typeof(GameName),
                                                DataController.instance.other_storage["game_name"].ToString()))
            {
            case GameName.taptap:
                platform_creater = new TapTap.PlatformCreater();
                break;

            case GameName.zigzag:
                platform_creater = new ZigZag.PlatformCreater();
                break;
            }

            platform_creater.LoadStartPlatform();
        }
Beispiel #3
0
 private void OnDestroy()
 {
     PlatformCreater.instance = null;
 }