public static YSView <T> Create(T view) { var ysView = new YSView <T>(); ysView.View = view; return(ysView); }
public override void StateBegin() { UnityEngine.Debug.Log("MainMenuScene scene StateBegin"); YSView <Button> button = YSView <Button> .Create("StartGameBtn"); button.OnClick(v => { SceneStateController.SetState(new BattleState()); }); }