private void Start() { movementController = GetComponent <MovementController>(); movement = new MovementActions(); movement.Forward.AddDefaultBinding(InputControlType.LeftStickY); movement.Strafe.AddDefaultBinding(InputControlType.LeftStickX); movement.RotatePosX.AddDefaultBinding(InputControlType.RightStickX); movement.RotatePosY.AddDefaultBinding(InputControlType.RightStickY); ringLauncherController = GetComponent <RingLauncher>(); ringLauncherAction = new LauncherActions(); ringLauncherAction.ActivateRingIntake.AddDefaultBinding(InputControlType.Action1); ringLauncherAction.LaunchRing.AddDefaultBinding(InputControlType.LeftTrigger); ringLauncherAction.IncreaseFlywheelPower.AddDefaultBinding(InputControlType.DPadUp); ringLauncherAction.DecreaseFlywheelPower.AddDefaultBinding(InputControlType.DPadDown); wobblerAction = new WobblerArmActions(); wobblerController = GetComponentInChildren <WobblerAttachmentController>(); wobblerAction.LiftArm.AddDefaultBinding(InputControlType.RightBumper); wobblerAction.LowerArm.AddDefaultBinding(InputControlType.LeftBumper); }
private void Start() { ringLauncher = GetComponentInParent <RingLauncher>(); ringPool = new List <GameObject>(); }