private void Awake() { map = FindObjectOfType <Map>(); transmitterController = FindObjectOfType <TransmitterController>(); gameController = FindObjectOfType <GameController>(); gameController.UpdateSparkCount(1); }
protected virtual void Awake() { if (map == null) { map = FindObjectOfType <Map>(); } if (startPoint && endPoint) { Debug.LogError("MAX STOP IT! An end point cannot be a start point!"); } GenerateTransmitter(); CheckConnections(); transmitterController = FindObjectOfType <TransmitterController>(); transmitterController.AddTransmitter(this); DrawConnections(); }