Ejemplo n.º 1
0
 public void Reset(Vector2 newPos, float disabledTime)
 {
     resetMessageObservable.Post(new ResetMessage(disabledTime));
     action.DisableAbilities(disabledTime);
     transform.position = newPos;
     vfx.DoFX();
     action.DisableMovement(disabledTime);
 }
Ejemplo n.º 2
0
 public void Respawn(Vector2 position)
 {
     rigid.constraints     = RigidbodyConstraints2D.None;
     transform.position    = position;
     rigid.velocity        = Vector2.zero;
     rigid.angularVelocity = 0;
     coll.enabled          = true;
     vfx.DoFX();
 }