public Animations(UiElevator handler, UiElevatorStop[] stops) { Handler = handler; Lights = Handler.GetComponentInChildren <FadeComponent>(); Motion = new UiMotion(this); Motion.Movement.SetThreshold(Threshold); Stops = new Dictionary <RoomId, Transform>(); foreach (var stop in stops) { Stops.Add(stop.Id, stop.Position); } }
void Awake() { UiElevator = GetComponent <UiElevator>(); }
protected override void Awake() { base.Awake(); UiElevator = GetComponent <UiElevator>(); }