Exemple #1
0
 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();
 }
Exemple #2
0
    // 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;
 }
Exemple #4
0
 public RogueCombat(CombatMgr aMgr)
 {
     aMgr.OnEnterCombat += new Combat(EnterCombat);
 }