Beispiel #1
0
 public GameObject GenerateInformationButton(Object toRotate)
 {
     return(GenerateButton("Information", informationButtonSprite, () =>
     {
         Debug.Log("Object pos : " + toRotate.tileLoc);
         Debug.Log("Object type : " + toRotate.objectType);
     }));
 }
Beispiel #2
0
    public GameObject GenerateRotateObjectButton(Object toRotate)
    {
        return(GenerateButton("Rotate", rotateButtonSprite, () =>
        {
            toRotate.Rotate90();

            /*GameServerConnectionConcrete.Instance.SendPacket(new RotateObjectPacket()
             * {
             *  objectUID = 2,
             *  newRotation = toRotate.GetRotation()
             * });*/
        }));
    }
Beispiel #3
0
 public void ShowOptionsFor(Object obj)
 {
     ClearButtons();
     AddButton(GenerateRotateObjectButton(obj));
     AddButton(GenerateInformationButton(obj));
 }