예제 #1
0
        public void HandleResponse(ISFSObject anObjectIn, GameLobbyManager ourGLM)
        {
            //Remove formationsPanel
            ourGLM.destroyObject("FormationsPanel");

            //Draw Halfboard
            ourGLM.getGameManager().drawHexGrid(5);
        }
예제 #2
0
        public void HandleResponse(ISFSObject anObjectIn, GameLobbyManager ourGLM)
        {
            //Create Unit GameObject and Set it's parent
            GameObject aUnit = ourGLM.createObject("Units/" + anObjectIn.GetUtfString("UnitID"));

            aUnit.transform.SetParent(GameObject.Find("Units").transform);

            //Set its position
            aUnit.transform.localPosition = ourGLM.getGameManager().getLocation(anObjectIn.GetInt("xLoc"), anObjectIn.GetInt("yLoc"));

            //Determine if it needs to be rotated
            if (anObjectIn.GetInt("yLoc") > 6)
            {
                aUnit.transform.Rotate(0, 180, 0);
            }
        }
예제 #3
0
 public void HandleResponse(ISFSObject anObjectIn, GameLobbyManager ourGLM)
 {
     //Create Unit GameObject and Set it's parent
     ourGLM.getGameManager().drawHexGrid(12);
 }