Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public virtual void StopShooting()
 {
     state = gunStates.idle;
 }
Ejemplo n.º 3
0
 protected virtual void Start()
 {
     state          = gunStates.idle;
     characterActor = GameObject.FindWithTag("Player").GetComponent <Lightbug.CharacterControllerPro.Core.CharacterActor>();
 }