protected override void Awake() { base.Awake(); GetPositionX = gameObject.transform.position.x; BlueSignal = GetComponentInChildren <TLBlueLamp>(); WhiteSignal = GetComponentInChildren <TLWhiteLamp>(); blue = BlueSignal.GetComponent <MeshRenderer>(); white = WhiteSignal.GetComponent <MeshRenderer>(); }
protected override void Awake() { base.Awake(); GetPositionX = gameObject.transform.position.x; RedSignal = GetComponentInChildren <TLRedLamp> (); WhiteSignal = GetComponentInChildren <TLWhiteLamp> (); GreenSignal = GetComponentInChildren <TLGreenLamp> (); TopYellowSignal = GetComponentInChildren <TLTopYellowLamp> (); BottomYellowSignal = GetComponentInChildren <TLBotYellowLamp> (); red = RedSignal.GetComponent <MeshRenderer> (); white = WhiteSignal.GetComponent <MeshRenderer> (); green = GreenSignal.GetComponent <MeshRenderer> (); topYellow = TopYellowSignal.GetComponent <MeshRenderer> (); botYellow = BottomYellowSignal.GetComponent <MeshRenderer> (); yellowSignalFlashing = GetComponent <Animator> (); }