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