예제 #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));
 }