private void Start() { explorationControls = playerInput.GetActions <ExplorationControls>(); battleControls = playerInput.GetActions <BattleControls>(); // Create the repeaters for the axis. horizontal = new Repeater(battleControls.moveX); vertical = new Repeater(battleControls.moveY); // Create the action buttons. actionButtons.Add(BattleInputs.Confirm, battleControls.confirm); actionButtons.Add(BattleInputs.Cancel, battleControls.cancel); actionButtons.Add(BattleInputs.RotateCameraLeft, explorationControls.rotateCameraLeft); actionButtons.Add(BattleInputs.RotateCameraRight, explorationControls.rotateCameraRight); Assert.IsNotNull(explorationControls, "explorationControls required"); Assert.IsNotNull(battleControls, "battleControls required"); }
private void Start() { m_battleControls = new BattleControls(); m_battleControls.Menus.SetCallbacks(this); m_battleControls.Menus.Enable(); m_win.SetActive(false); m_gameOver.SetActive(false); m_menuEntryImage = new Image[5]; m_menuEntryTextMesh = new TextMeshProUGUI[5]; for (var i = 0; i < 5; ++i) { var menuEntry = Instantiate(m_menuEntryPrefab); m_menuEntryImage[i] = menuEntry.GetComponentInChildren <Image>(); m_menuEntryTextMesh[i] = menuEntry.GetComponentInChildren <TextMeshProUGUI>(); menuEntry.transform.SetParent(m_menuParent.transform, false); } }
void Start () { It = this; Init(); }
public MenusActions(BattleControls wrapper) { m_Wrapper = wrapper; }
public BattleControls() { instance = this; }