public void SendNextLevelIncreaseMax() { if (Data.CurrentWave == Data.GetMaxReachedWave()) { Data.IncreaseCurrentWaveAndMaxWave(); Player.AchievementManager.RegisterEvent(AchievementType.Wave, Data.GetMaxReachedWave()); AnalyticsManager.LevelPassed(this); StartCoroutine(SendWave()); } else if (Data.CurrentWave < Data.GetMaxReachedWave()) { StartCoroutine(SendWave()); } }
public bool CastSkill(Mage mage, LayerMask FloorMask, Vector3 mousePosition, bool isAnimation) { StopCallingSkill(mage); if (castSkill == false) { return(true); } bool result = false; switch (mage.Data.GetSkillData().GetSkillType()) { case SkillType.AreaTop: result = CastAreaTopSkill(mage, FloorMask, mousePosition); // result = CastAreaTopSkill(mage, IgnorePlayerSpell, FloorMask, mousePosition, isAnimation); break; case SkillType.AreaBottom: result = CastAreaBottomSkill(mage, FloorMask, mousePosition); // result = CastAreaBottomSkill(mage, IgnorePlayerSpell, FloorMask, mousePosition, isAnimation); break; case SkillType.PathFollower: result = CastPathFollowerSkill(mage, FloorMask, mousePosition); // result = CastPathFollowerSkill(mage, IgnorePlayerSpell, FloorMask, mousePosition, isAnimation); break; case SkillType.AllMinions: result = CastAllMinionsSkill(mage, FloorMask, mousePosition); // result = CastAllMinionsSkill(mage, IgnorePlayerSpell, FloorMask, mousePosition, isAnimation); break; case SkillType.AllTowers: result = CastAllTowersSkill(mage, FloorMask, mousePosition); // result = CastAllTowersSkill(mage, IgnorePlayerSpell, FloorMask, mousePosition, isAnimation); break; } AnalyticsManager.MageSkillUsed(mage.Data.GetElement()); return(result); }