Exemple #1
0
 public void Dash(GhostController.Direction direction)
 {
     currentDir     = direction.vec;
     dashMultiplier = direction.diag ? .8f : 1f;
     doDash         = true;
     ghost.GetModel().SetActive(true);
     dashTmr      = 0f;
     coll.enabled = true;
     fx.PlayParticles();
     fx.PlayRandomClip();
     model.SetActive(false);
     fxHolder.transform.GetChild(0).gameObject.SetActive(true); //Feo feo tbh
     combo.StartDash();                                         //Me encantaria hacerlo con eventos :(
 }