ControlsView InstantiateControlsView(GameObject prefab) { Transform parent = CommonObjects.ActiveCanvas.ControlsViewContainer; GameObject g = ZeldaViewController.InstantiateView(prefab, parent); ControlsView v = g.GetComponent <ControlsView>(); return(v); }
public void getPlayer(string fighter_num) { foreach (PlayerModel player in PlayerList) { if (player.Name == fighter_num) { SelectedPlayer = player; ControlsView.SelectedPlayer = SelectedPlayer; ControlsView.run("inventory"); } } }
#pragma warning restore 0219, 414 protected override void OnEnable() { base.OnEnable(); this._sControlsView = this.target as ControlsView; }