Пример #1
0
 public void startReading(MagicMissile.MagicType type, GameObject core)
 {
     reading          = true;
     orbCore          = core;
     readingMagicType = type;
     type2strategy [type].init();
     if (type == MagicMissile.MagicType.Fire)
     {
         controller.UpdateAttentionEvent += type2strategy [type].readMind;
         controller.UpdateAttentionEvent += changeOrb;
     }
     else
     {
         controller.UpdateMeditationEvent += type2strategy [type].readMind;
         controller.UpdateMeditationEvent += changeOrb;
     }
 }
Пример #2
0
 protected void switchMagicType()
 {
     if (magicController.isReading())
     {
         return;
     }
     if (nowMagicType == MagicMissile.MagicType.Fire)
     {
         nowOrb.SetActive(false);
         nowMagicType = MagicMissile.MagicType.Ice;
         nowOrb       = iceOrb;
     }
     else
     {
         nowOrb.SetActive(false);
         nowMagicType = MagicMissile.MagicType.Fire;
         nowOrb       = fireOrb;
     }
     nowOrb.SetActive(true);
 }
Пример #3
0
 public void setReadingStrategy(MagicMissile.MagicType type, ReadingStrategy rs)
 {
     type2strategy [type] = rs;
 }