コード例 #1
0
ファイル: VillainController.cs プロジェクト: oocast/Zuagon
 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;
 }