public void Start() { objectMaster = new ObjectMasters(); objectMaster.Load(Application.dataPath + "//..//uw1_object_config.txt"); }
void Awake() { //if(LevelSerializer.IsDeserializing) return; instance=this; UWEBase._RES = game; objectMaster=new ObjectMasters(); objectMaster.Load(Application.dataPath + "//..//" + UWEBase._RES + "_object_config.txt"); critter = new Critters(); critter.Load(Application.dataPath + "//..//" + UWEBase._RES + "_critters.txt"); commobj=new CommonObjProps(); commobj.Load(Application.dataPath + "//..//" + UWEBase._RES + "_comobj.txt"); weaponprops =new WeaponProps(); weaponprops.Load(Application.dataPath + "//..//" + UWEBase._RES + "_weapons.txt"); }