public RambiCollectedState(Rambi item) { this.item = item; //Temporary for sprint 3 PhysicsWorld.Instance.DestroyBody(this.item.Body); WorldManager.Instance.RemoveObject(this.item); }
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(); }