Example #1
0
 public RambiCollectedState(Rambi item)
 {
     this.item = item;
     //Temporary for sprint 3
     PhysicsWorld.Instance.DestroyBody(this.item.Body);
     WorldManager.Instance.RemoveObject(this.item);
 }
Example #2
0
        public void Execute()
        {
            crate.State.ProcessBreak();
            IItem rambi = new Rambi();

            rambi.Body.BottomCenter = crate.Body.BottomCenter;
            WorldManager.Instance.AddObject(rambi);
            PhysicsWorld.Instance.DestroyBody(crate.Body);
        }
 public RambiIdleState(Rambi item)
 {
     this.item = item;
     //this.item.Sprite = ItemSpriteFactory.Instance.CreateRambiSprite();
 }