public virtual void Shoot(Vector3 direction = default(Vector3), GameObject target = default(GameObject)) { if (direction != default(Vector3)) { shootDirection = direction; } if (S_World.tick - lastShootTick >= shootTicks) { lastShootTick = S_World.tick; state = gunStates.shooting; } }
public virtual void StopShooting() { state = gunStates.idle; }
protected virtual void Start() { state = gunStates.idle; characterActor = GameObject.FindWithTag("Player").GetComponent <Lightbug.CharacterControllerPro.Core.CharacterActor>(); }