Ejemplo n.º 1
0
        public ItemManager(EntityManager entityManager, PhysicsSimulator physics, Environment environment, bool itemDropsAllowed)
        {
            if (itemDropsAllowed)
            {
                ItemSpawnComponent itemSpawner = new ItemSpawnComponent(this, environment);
                this.AttachComponent(itemSpawner);
            }

            this.itemManager = new ItemManagerComponent(this, entityManager, physics, environment.Arena);
            this.AttachComponent(itemManager);
        }
 public override void Start()
 {
     // Get the Item Manager.
     this.itemManagerComponent = (ItemManagerComponent) Parent.GetComponent("ItemManagerComponent");
 }