Exemple #1
0
    //创建之后只会执行一次
    void Awake()
    {
        Instance = this;
        Values.init();
        _BoxsMoveController = gameObject.AddComponent <BoxsMoveController> ();

        EventDispatcher.Instance.AddEventListener("OnStartGame", OnStartGame);
        EventDispatcher.Instance.AddEventListener("onTouchStart", onTouchStart);
        EventDispatcher.Instance.AddEventListener("OnCreateStartBox", OnCreateStartBox);
    }