Feel 5.9
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feel.Tactical Class Reference

A class used to handle the characters in Feel's Tactical demo scene, detects input, shoots while a button is pressed, stops shooting when released, handles reload. More...

Inheritance diagram for MoreMountains.Feel.Tactical:

Public Attributes

float CooldownDuration = 0.1f
 a duration, in seconds, between two shots, during which shots are prevented
Transform ImpactPosition
 the position of the shot's impact
MMFeedbacks ShootFeedback
 a feedback to call when shooting
MMFeedbacks ShootStopFeedback
 a feedback to call when shooting stops
MMFeedbacks ReloadFeedback
 a feedback to call when a reload happens

Protected Member Functions

virtual void Update ()
 On Update we look for input.
virtual void HandleInput ()
 Detects input.
virtual void Shoot ()
 Shoots if possible.
virtual void ShootStop ()
 Stops shooting.

Protected Attributes

float _lastJumpStartedAt = -100f
int _magazine = 15

Detailed Description

A class used to handle the characters in Feel's Tactical demo scene, detects input, shoots while a button is pressed, stops shooting when released, handles reload.

Member Function Documentation

◆ HandleInput()

virtual void MoreMountains.Feel.Tactical.HandleInput ( )
protectedvirtual

Detects input.

◆ Shoot()

virtual void MoreMountains.Feel.Tactical.Shoot ( )
protectedvirtual

Shoots if possible.

◆ ShootStop()

virtual void MoreMountains.Feel.Tactical.ShootStop ( )
protectedvirtual

Stops shooting.

◆ Update()

virtual void MoreMountains.Feel.Tactical.Update ( )
protectedvirtual

On Update we look for input.

Member Data Documentation

◆ _lastJumpStartedAt

float MoreMountains.Feel.Tactical._lastJumpStartedAt = -100f
protected

◆ _magazine

int MoreMountains.Feel.Tactical._magazine = 15
protected

◆ CooldownDuration

float MoreMountains.Feel.Tactical.CooldownDuration = 0.1f

a duration, in seconds, between two shots, during which shots are prevented

◆ ImpactPosition

Transform MoreMountains.Feel.Tactical.ImpactPosition

the position of the shot's impact

◆ ReloadFeedback

MMFeedbacks MoreMountains.Feel.Tactical.ReloadFeedback

a feedback to call when a reload happens

◆ ShootFeedback

MMFeedbacks MoreMountains.Feel.Tactical.ShootFeedback

a feedback to call when shooting

◆ ShootStopFeedback

MMFeedbacks MoreMountains.Feel.Tactical.ShootStopFeedback

a feedback to call when shooting stops


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/FeelDemos/Tactical/Scripts/Tactical.cs