public void SignalOutLevel(LevelBehaviour level) { var levelIndex = Array.IndexOf(levels, level); signals.Remove(levelIndex); }
protected override void OnAwake() { level = GetComponentInParent <LevelBehaviour>(); elevator = GetComponentInParent <ElevatorBehaviour>(); }
public void SignalOnLevel(LevelBehaviour level) { var levelIndex = Array.IndexOf(levels, level); signals.Add(levelIndex); }