private void InitUIRayGameObject() { if (GlobalVariables.GetGlobalVariables().gameObjectSystems != null) { GameObjectUtil.AddBoxColliderByChildByTextMesh(GlobalVariables.GetGlobalVariables().gameObjectSystems); } if (GlobalVariables.GetGlobalVariables().gameObjectGuiHud != null) { GameObjectUtil.AddBoxColliderByChildByTextMesh(GlobalVariables.GetGlobalVariables().gameObjectGuiHud); } }
private void InitUIRayGameObject() { GameObject systemsGameObject = GameObject.Find("Systems"); if (systemsGameObject != null) { GameObjectUtil.AddBoxColliderByChildByTextMesh(systemsGameObject); } GameObject hudGameObject = GameObject.Find("GUI/HUD"); if (hudGameObject != null) { GameObjectUtil.AddBoxColliderByChildByTextMesh(hudGameObject); } }