// Use this for initialization public void Awake() { alienInputActions = InControl.AlienInputActions.CreateWithDefaultBindings(); npcPictureNames = this.transform.Find("NPCPictureName"); if (activateOnAwake) { OnActivated(0); } }
public static AlienInputActions CreateWithDefaultBindings() { var playerActions = new AlienInputActions(); playerActions.leftStickUp.AddDefaultBinding(Key.UpArrow); playerActions.leftStickDown.AddDefaultBinding(Key.DownArrow); playerActions.leftStickLeft.AddDefaultBinding(Key.LeftArrow); playerActions.leftStickRight.AddDefaultBinding(Key.RightArrow); playerActions.reset.AddDefaultBinding(Key.Escape); playerActions.shoot.AddDefaultBinding(Key.D); playerActions.explode.AddDefaultBinding(Key.E); playerActions.leftStickLeft.AddDefaultBinding(InputControlType.LeftStickLeft); playerActions.leftStickRight.AddDefaultBinding(InputControlType.LeftStickRight); playerActions.leftStickUp.AddDefaultBinding(InputControlType.LeftStickUp); playerActions.leftStickDown.AddDefaultBinding(InputControlType.LeftStickDown); playerActions.reset.AddDefaultBinding(InputControlType.Action5); playerActions.shoot.AddDefaultBinding(InputControlType.Action1); playerActions.explode.AddDefaultBinding(InputControlType.Action2); return(playerActions); }