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