override public void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex) { if (notificationItem == null) { var panelTransform = animator.transform.Find(notificationPanelPath); if (panelTransform != null) { notificationItem = panelTransform.GetComponent<GameJolt.UI.Controllers.NotificationItem>(); } } if (notificationsQueue == null) { notificationsQueue = new Queue<GameJolt.UI.Objects.Notification>(); } }
override public void OnStateEnter(Animator animator, AnimatorStateInfo animatorStateInfo, int layerIndex) { if (notificationItem == null) { var panelTransform = animator.transform.Find(notificationPanelPath); if (panelTransform != null) { notificationItem = panelTransform.GetComponent <GameJolt.UI.Controllers.NotificationItem>(); } } if (notificationsQueue == null) { notificationsQueue = new Queue <GameJolt.UI.Objects.Notification>(); } }