public World(string user, Realm rl, byte[] key) { mUsername = user.ToUpper(); objectMgr = new ObjectMgr(); movementMgr = new MovementMgr(this); combatMgr = new CombatMgr(this); terrainMgr = new TerrainMgr(); realm = rl; mKey = key; PacketQueue = new Queue(); }
// Use this for initialization void Start() { //Enforce singleton pattern. If another combat manager exists, destroy this if (CombatMgr._instance != null && CombatMgr._instance != this) { Destroy(this.gameObject); } else { //Otherwise make this the static instance CombatMgr._instance = this; if (FoundItems == null) { FoundItems = new List <InventoryItemScript>(); } } }
private void Awake() { inst = this; }
public RogueCombat(CombatMgr aMgr) { aMgr.OnEnterCombat += new Combat(EnterCombat); }