Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BuildingInfo jpgarden = default (BuildingInfo);
- BuildingInfo watertower = default (BuildingInfo);
- BuildingCollection[] bclns = UnityEngine.Object.FindObjectsOfType<BuildingCollection>();
- foreach (BuildingCollection bcln in bclns)
- {
- foreach (BuildingInfo info in bcln.m_prefabs) {
- if (info.name == "JapaneseGarden"){
- jpgarden = info;
- }
- if (info.name == "Water Tower"){
- watertower = info;
- }
- }
- }
- jpgarden.m_buildingAI = watertower.m_buildingAI;
- jpgarden.m_class = watertower.m_class;
Advertisement
Add Comment
Please, Sign In to add comment