Пример #1
0
		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>();
			}
		}
Пример #2
0
        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>();
            }
        }