public static void ShowNotification(string title, string message, SA_EditorNotificationType type) { if (SA_EditorTesting.IsInsideEditor) { EditorUI.ShowNotification(title, message, type); } }
public void ShowNotification(string title, string message, SA_EditorNotificationType type) { if (_CurrentTween != null) { _CurrentTween.Stop(); } CancelInvoke("NotificationDelayComplete"); Title.text = title; Message.text = message; foreach (Image icon in Icons) { icon.gameObject.SetActive(false); } switch (type) { case SA_EditorNotificationType.Achievement: Icons[0].gameObject.SetActive(true); break; case SA_EditorNotificationType.Error: Icons[1].gameObject.SetActive(true); break; case SA_EditorNotificationType.Leaderboards: Icons[2].gameObject.SetActive(true); break; case SA_EditorNotificationType.Message: Icons[3].gameObject.SetActive(true); break; } Animate(52f, -52f, SA.Common.Animation.EaseType.easeOutBack); _CurrentTween.OnComplete += HandleOnInTweenComplete; }
public void ShowNotification(string title, string message, SA_EditorNotificationType type) { if(_CurrentTween != null) { _CurrentTween.Stop(); } CancelInvoke("NotificationDelayComplete"); Title.text = title; Message.text = message; foreach(Image icon in Icons) { icon.gameObject.SetActive(false); } switch(type) { case SA_EditorNotificationType.Achievement: Icons[0].gameObject.SetActive(true); break; case SA_EditorNotificationType.Error: Icons[1].gameObject.SetActive(true); break; case SA_EditorNotificationType.Leaderboards: Icons[2].gameObject.SetActive(true); break; case SA_EditorNotificationType.Message: Icons[3].gameObject.SetActive(true); break; } Animate(52f, -52f, SA_EaseType.easeOutBack); _CurrentTween.OnComplete += HandleOnInTweenComplete; }
public static void ShowNotification(string title, string message, SA_EditorNotificationType type) { if(SA_EditorTesting.IsInsideEditor) { EditorUI.ShowNotification(title, message, type); } }