public static void ComponentReset() { EffectsMgr.Clear(); Sound.Clear(); GameTimer.ClearAllTimer(); TextEffectMgr.Clear(); GameManager.objMemoryMananger.ClearGroups(); DrawMgr.SetCondition(null); }
private void InitialDrawMgr(IAI tankAI1, IAI tankAI2) { if (tankAI1 is ManualControl) { DrawMgr.SetCondition( delegate(IDrawableObj obj) { if (tank1.IsDead) { return(true); } if (tank1.Rader.PointInRader(obj.Pos) || obj == tank1 || ((obj is ShellNormal) && ((ShellNormal)obj).Firer == tank1)) { return(true); } else { return(false); } }); } if (tankAI2 is ManualControl) { DrawMgr.SetCondition( delegate(IDrawableObj obj) { if (tank2.IsDead) { return(true); } if (tank2.Rader.PointInRader(obj.Pos) || obj == tank2 || ((obj is ShellNormal) && ((ShellNormal)obj).Firer == tank2)) { return(true); } else { return(false); } }); } }
private void InitialDrawMgr(IAI tankAI1, IAI tankAI2) { DrawMgr.SetCondition( delegate(IDrawableObj obj) { return(true); }); //if (tankAI1 is ManualControl) //{ // DrawMgr.SetCondition( // delegate(IDrawableObj obj) // { // if (tank1.IsDead) // return true; // if (tank1.Rader.PointInRader(obj.Pos) || obj == tank1 || // ((obj is ShellNormal) && ((ShellNormal)obj).Firer == tank1)) // return true; // else // return false; // }); //} //if (tankAI2 is ManualControl) //{ // DrawMgr.SetCondition( // delegate(IDrawableObj obj) // { // if (tank2.IsDead) // return true; // if (tank2.Rader.PointInRader(obj.Pos) || obj == tank2 || // ((obj is ShellNormal) && ((ShellNormal)obj).Firer == tank2)) // return true; // else // return false; // }); //} }