コード例 #1
0
            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);
                }
            }
コード例 #2
0
 void Awake()
 {
     UiElevator = GetComponent <UiElevator>();
 }
コード例 #3
0
 protected override void Awake()
 {
     base.Awake();
     UiElevator = GetComponent <UiElevator>();
 }