Esempio n. 1
0
        public static YSView <T> Create(T view)
        {
            var ysView = new YSView <T>();

            ysView.View = view;
            return(ysView);
        }
Esempio n. 2
0
        public override void StateBegin()
        {
            UnityEngine.Debug.Log("MainMenuScene scene StateBegin");

            YSView <Button> button = YSView <Button> .Create("StartGameBtn");

            button.OnClick(v =>
            {
                SceneStateController.SetState(new BattleState());
            });
        }