Beispiel #1
0
    public void TurnPathIndicationOn()
    {
        if (TrackPath.PathMade != 0)
        {
            return;
        }
        enginePath = engine.EngineRS.OwnPath;
        int fTrack = engine.EngineRS.FirstTrackIndex;
        int lTrack = engine.EngineRS.LastTrackIndex;

        for (int i = fTrack; i <= lTrack; i++)
        {
            if (enginePath [i] == null)
            {
                return;
            }
            for (int j = 0; j < enginePath [i].TrackCircuit.Indicators.Length; j++)
            {
                IndicatorPath ind = enginePath [i].TrackCircuit.Indicators [j];
                ind.Show(true);
            }
        }
        IsPathIndicate = true;
    }
Beispiel #2
0
 public void Init()
 {
     indicator = GetComponentInChildren <IndicatorPath> ();
 }