public void SetPreviousCannonPart(CannonPartType cannonPartType) { switch (cannonPartType) { case CannonPartType.Barrel: barrelController.SetPreviousCannonPart(); break; case CannonPartType.Stand: standController.SetPreviousCannonPart(); break; case CannonPartType.Wheels: wheelsController.SetPreviousCannonPart(); break; } AlignCannonParts(); }
private void SetPreviousCannonPart(CannonPartType cannonPartType) { CannonController.Instance.SetPreviousCannonPart(cannonPartType); }
private void SetNextCannonPart(CannonPartType cannonPartType) { CannonController.Instance.SetNextCannonPart(cannonPartType); }
public CannonPart(CannonPartType cannonPartType, int cannonPartId) { this.cannonPartType = cannonPartType; this.cannonPartId = cannonPartId; }
private void OnNextButtonClicked(CannonPartType cannonPartType) { OnNextButton?.Invoke(cannonPartType); }
private void OnPreviousButtonClicked(CannonPartType cannonPartType) { OnPreviousButton?.Invoke(cannonPartType); }