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; } }
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); }
public void setReadingStrategy(MagicMissile.MagicType type, ReadingStrategy rs) { type2strategy [type] = rs; }