void Start() { //Bind keys with commands buttonB = new DoNothing(); buttonW = new moveForward(); buttonS = new moveReverse(); buttonA = new moveLeft(); buttonD = new moveRight(); buttonZ = new undoCommand(); rb = GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { buttonW = new MoveForward(); buttonA = new MoveLeft(); buttonS = new MoveReverse(); buttonD = new MoveRight(); buttonB = new DoNothing(); buttonZ = new UndoCommand(); buttonR = new ReplayCommand(); boxStartPos = boxTrans.position; }
//resets all button mapping private void ResetAllButtons() { XButton = new DoNothing(); CircleButton = new DoNothing(); SquareButton = new DoNothing(); TriangleButton = new DoNothing(); DPadUp = new DoNothing(); DPadDown = new DoNothing(); DPadLeft = new DoNothing(); DPadRight = new DoNothing(); L1 = new DoNothing(); R1 = new DoNothing(); LStickPress = new DoNothing(); RStickPress = new DoNothing(); Pause = new DoNothing(); Select = new DoNothing(); RightTrigger = new DoNothing(); LeftTrigger = new DoNothing(); }
void Start() { //links object creation to specific buttons XButton = new Jump(); CircleButton = new DoNothing(); SquareButton = new DoNothing(); TriangleButton = new DoNothing(); DPadUp = new DoNothing(); DPadDown = new DoNothing(); DPadLeft = new UndoButton(); DPadRight = new DoNothing(); R1 = new SpawnCube(); L1 = new SpawnTree(); LStickPress = new DoNothing(); RStickPress = new DoNothing(); Pause = new DoNothing(); Select = new RemapButton(); RightTrigger = new SpawnTower(); LeftTrigger = new SpawnCrystals(); inputs.Push(XButton); }