示例#1
0
 // Use this for initialization
 void Start()
 {
     controller  = GetComponentInParent <ChargingStationController>();
     gameManager = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameManager>();
 }
示例#2
0
文件: GameManager.cs 项目: narkos/DCT
 public void SetChargingStation(ChargingStationController current = null)
 {
     currentChargingStation = current != null ? current : null;
 }