public GameObject GenerateInformationButton(Object toRotate) { return(GenerateButton("Information", informationButtonSprite, () => { Debug.Log("Object pos : " + toRotate.tileLoc); Debug.Log("Object type : " + toRotate.objectType); })); }
public GameObject GenerateRotateObjectButton(Object toRotate) { return(GenerateButton("Rotate", rotateButtonSprite, () => { toRotate.Rotate90(); /*GameServerConnectionConcrete.Instance.SendPacket(new RotateObjectPacket() * { * objectUID = 2, * newRotation = toRotate.GetRotation() * });*/ })); }
public void ShowOptionsFor(Object obj) { ClearButtons(); AddButton(GenerateRotateObjectButton(obj)); AddButton(GenerateInformationButton(obj)); }