Example #1
0
 private void LoadTrayController()
 {
     TrayController = TrayController.Instance;
     //TrayController = new TrayController();
     TrayController.PropertyChanged += OnTrayStatusChanged;
     //TrayController.TrayStatusChanged += OnTrayStatusChanged;
     //TrayController.ContainerStateChanged += OnTrayContainerStateChanged;
 }
Example #2
0
 public virtual void Awake()
 {
     controller = Object.FindObjectOfType <TrayController>();
     if (controller == null)
     {
         throw new UnityException("Could not find parent tray controller!");
     }
 }
Example #3
0
 private void Awake()
 {
     Instance = this;
     _rb      = GetComponent <Rigidbody>();
 }
Example #4
0
 public TrayLoadChipsState(TrayController trayController) : base(trayController)
 {
 }
 public TrayLoadTraySlotsState(TrayController trayController) : base(trayController)
 {
 }
Example #6
0
 public TrayState(TrayController trayController)
 {
     _trayController = trayController;
 }
 private void AttachTrayController()
 {
     TrayController = TrayController.Instance;
 }