예제 #1
0
 void StartFreeze()
 {
     Debug.Log("Magic::Freeze!");
     for (int i = 0; i < 4; i++)
     {
         if (i == villainIndex)
         {
             continue;
         }
         launcher.ChangeSpin(i, 0f);
         launcher.SetCannonLock(i, true);
         freezeEffects[i].GetComponent <SpriteRenderer>().DOFade(1f, 0.5f);
         freezeEffects[i].transform.GetChild(0).gameObject.GetComponent <ParticleSystem>().Play();
     }
     soundManager.PlayFreezeEffect();
     soundManager.PlayFreezeDialogue();
     if (stateStartAction != null)
     {
         stateStartAction();
     }
     stateEndAction += EndFreeze;
 }