示例#1
0
 // Start is called before the first frame update
 void Start()
 {
     if (!townHallManager)
     {
         townHallManager = FindObjectOfType <TownHallManager>();
     }
     if (!townHouseManager)
     {
         townHouseManager = FindObjectOfType <TownHouseManager>();
     }
 }