示例#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));
 }