public SelectedObjectUseMenu(ObjectBasis selectedobject, MyCharacterController owner,Vector2 pos,Vector2 size, string name) : base(owner, pos, size, name) { Debug.Log("Object: "+(selectedobject != null)); SelectedObject = selectedobject; DescriptionMenu = new ItemDescriptionMenu(); WindowText wt = new WindowText(SelectedObject.Description, DescriptionMenu.Window.TextAreaPosition + new Vector2(WindowConfigure.fontScale(1f), 0)); wt.TextAreaSize = DescriptionMenu.Window.TextAreaSize - new Vector2(WindowConfigure.fontScale(5), WindowConfigure.fontScale(2)); DescriptionMenu.Window.addWindowText(wt); VisiblePreviousMenu = true; }
public FlyingObjectHit(ObjectBasis obj, PlayerController player) : base(player) { Object = obj; }