protected override void HandleCollision(GameObject other) { // Register a consumable task if we collided with a consumable if (other.gameObject.GetComponent <Environment>() && other.gameObject.GetComponent <Environment>().EnvironmentType == EnvironmentType.Consumable) { GodTutorial.RegisterTask(TutorialTask.Consumable, other.gameObject.GetComponent <Environment>().Consumable.Value); } base.HandleCollision(other); }
/// <summary> /// Handles when the Resume button is pressed by unpausing /// </summary> public void HandleResume() { GodTutorial.RegisterTask(TutorialTask.PressPause); this.tutorialHelper.SetActive(false); TogglePauseMenu(); }
/// <summary> /// Handles the pause command and registers a pause task with GodTutorial /// </summary> public override void Pause() { GodTutorial.RegisterTask(TutorialTask.Pause); base.Pause(); }
/// <summary> /// Handles the jump command and registers a jump task with GodTutorial /// </summary> /// <param name="magnitude">Additional multiplier to apply to the jump's force</param> public override void JumpEnter(float magnitude = 1) { GodTutorial.RegisterTask(TutorialTask.Jump); base.JumpEnter(magnitude); }