// Use this for initialization
    void Start()
    {
        //split test



        //end


        // string defaultCode = JsonUtility.ToJson(new GameLevelData());
        // StreamWriter writer = new StreamWriter("Assets/Resources/GameLevelData/default.json");
        // writer.WriteLine(defaultCode);
        // writer.Close();

        Performance_Center.init(10, 5);
        DodEventCentre.Instance.Invoke(new RM_AddOperatorToMainUI("002_amiya"));
        if (GameRunner.Instance != null)
        {
            throw new Exception("The Phaaaaaaaaaaaaaaantom of the doublesingleton is here, inside my code~~~");
        }

        GameRunner.Instance = this;
        RhodesGame.init();

        // RhodesGame.Instance.battle.actorMgr.createOprt("f**k");
        // print(JsonUtility.ToJson(new ActorData()));
        // RhodesGame.Instance.battle.actorMgr.createEnemy("Neosb");
        // RhodesGame.Instance.battle.actorMgr.createEnemy("sb");
        RhodesGame.Instance.battle.level.init("default");
    }
Esempio n. 2
0
 public static void init(int width, int height, bool hideOrigin = true)
 {
     Performance_Center.Instance        = new Performance_Center();
     Performance_Center.Instance.origin = GlobalGameObject.Ground_Zero;
     Performance_Center.Instance.ui     = new MainUI();
     Performance_Center.Instance.ui.init();
     //*****************************//
     Performance_Center.Instance.deployMap(height, width, hideOrigin);
     //*****************************//
     _test();
     Debug.Log("Performance_Center initialization complete!!");
 }