public void StartPossess(PossessableProp prop) { dash.Stop(); fx.PlayRandomClip(); combo.Add(prop); isPossessing = true; ApplyPossess(); }
void InitialStatus() { tmr = 0f; if (fx == null) { fx = GetComponent <FX>(); } fx.PlayRandomClip(); }
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 :( }
void FailCombo() { Debug.Log("Fail"); if (dashCount > 1) { fx.PlayRandomClip(); } foreach (PossessableProp p in props) { p.ReturnToNormal(); } dashCount = 0; props = new List <PossessableProp>(); }