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

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