private void initPlace() { //playerStatus mElement.mPlayerStatusDisplay = GamePlacer.placePlayerStatus(mElement.mStageData); //mas mElement.mMasDisplay = GamePlacer.placeMas(mElement.mStageData); //table mElement.mTable = GamePlacer.placeTable(mElement.mStageData); }
public void showStage(string aFilePath) { if (mMasContainer != null) { mMasContainer.name = "deleted"; mMasContainer.delete(); mRouteContainer.name = "deleted"; mRouteContainer.delete(); } StageData tStageData = new StageData(aFilePath); mStageData = tStageData; GamePlacer.placeMas(tStageData); mMasContainer = GameObject.Find("masContainer").GetComponent <MyBehaviour>(); mMasContainer.transform.SetParent(mStage.transform, false); mRouteContainer = GameObject.Find("routeContainer").GetComponent <MyBehaviour>(); mRouteContainer.transform.SetParent(mStage.transform, false); }