コード例 #1
0
 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>();
 }
コード例 #2
0
ファイル: ExitSignal.cs プロジェクト: ikryloff/RailRoadMaster
    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> ();
    }