Ejemplo n.º 1
0
 // Start is called before the first frame update
 protected override void Start()
 {
     moveSpeed = 8f;
     jumpForce = 10f;
     power     = new ForwardDash();
     weapon    = new Gun();
     base.Start();
 }
Ejemplo n.º 2
0
 static public void AddForwardDash(GameObject gameObject, ActionSequence sequence)
 {
     ForwardDash action = new ForwardDash();
     action.source = gameObject;
     action.force = 6f;
     action.duration = 0.4f;
     QueuePop(sequence,3);
     sequence.actions.Add(action);
 }