예제 #1
0
파일: UIGameHUD.cs 프로젝트: jdohgamer/SSC
 //LayerMask mask = (1<<LayerMask.NameToLayer("Ground") | 1<<LayerMask.NameToLayer("Characters"));
 public UIGameHUD(GUIController GUI, MainGame mg)
 {
     this.gui = GUI;
     MainGameInstance = mg;
     board = Grid_Setup.Instance;
     panel = GameObject.Instantiate(gui.panelFab.gameObject, Vector3.zero, Quaternion.identity)as GameObject;
     panel.transform.SetParent(gui.UIcan.transform,false);
     panel.transform.SetAsLastSibling();
     pc = panel.GetComponent<PanelController> ();
     pc.HidePanel();
 }
예제 #2
0
파일: MainGame.cs 프로젝트: jdohgamer/SSC
 public void StartGame()
 {
     this.gui = GetComponent<GUIController>();
     this.board = GetComponent<Grid_Setup>();
     Grid_Setup.Instance = this.board;
     this.GameClientInstance  = new CustomGameClient();
     CustomGameClient.ClientInstance = this.GameClientInstance;
     this.GameClientInstance.AppId = AppId;  // edit this!
     this.GameClientInstance.mainGame = this;
     Application.runInBackground = true;
     CustomTypes.Register();
     characterActions = new PlayerAction[][]{new PlayerAction[MaxActions], new PlayerAction[MaxActions], new PlayerAction[10]};
     //oppCharacers = new FSM_Character[teamSize];
     score = new int[2];
     connectInProgress = GameClientInstance.ConnectToRegionMaster("us");
 }