コード例 #1
0
 public static void ShowNotification(string title, string message, SA_EditorNotificationType type)
 {
     if (SA_EditorTesting.IsInsideEditor)
     {
         EditorUI.ShowNotification(title, message, type);
     }
 }
コード例 #2
0
    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;
    }
コード例 #3
0
	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;
	}
コード例 #4
0
	public static void ShowNotification(string title, string message, SA_EditorNotificationType type) {
	
		if(SA_EditorTesting.IsInsideEditor) {
			EditorUI.ShowNotification(title, message, type);
		}
	}