예제 #1
0
    ControlsView InstantiateControlsView(GameObject prefab)
    {
        Transform    parent = CommonObjects.ActiveCanvas.ControlsViewContainer;
        GameObject   g      = ZeldaViewController.InstantiateView(prefab, parent);
        ControlsView v      = g.GetComponent <ControlsView>();

        return(v);
    }
예제 #2
0
 public void getPlayer(string fighter_num)
 {
     foreach (PlayerModel player in PlayerList)
     {
         if (player.Name == fighter_num)
         {
             SelectedPlayer = player;
             ControlsView.SelectedPlayer = SelectedPlayer;
             ControlsView.run("inventory");
         }
     }
 }
예제 #3
0
#pragma warning restore 0219, 414

    protected override void OnEnable()
    {
        base.OnEnable();

        this._sControlsView = this.target as ControlsView;
    }