GStructure getRandomSceneryProp() { GStructure prop = null; int propType = UnityEngine.Random.Range(0, 100); if (propType >= 0 && propType < 10) { prop = new OBJ_Rock1(); } if (propType >= 10 && propType < 50) { prop = new OBJ_Rock2(); } if (propType >= 50 && propType < 60) { prop = new OBJ_Rock3(); } if (propType >= 60 && propType < 100) { prop = new OBJ_Rock4(); } return(prop); }
GStructure getRandomSceneryProp() { GStructure prop = null; int propType = UnityEngine.Random.Range(0, 100); if(propType >= 0 && propType < 10) { prop = new OBJ_Rock1(); } if(propType >= 10 && propType < 50) { prop = new OBJ_Rock2(); } if(propType >= 50 && propType < 60) { prop = new OBJ_Rock3(); } if(propType >= 60 && propType < 100) { prop = new OBJ_Rock4(); } return prop; }