Exemplo n.º 1
0
 void OnDestroy()
 {
     if (TutorialUIManager.HasInstance() && TutorialUIManager.Instance.HasDialog())
     {
         TutorialUIManager.Instance.HideDialog();
     }
 }
    public override void Cancel()
    {
        var com = _operateObject.GetComponent <UGUIEventListener>();

        if (com)
        {
            TutorialUIManager.Destroy(com);
        }
    }
Exemplo n.º 3
0
 private void awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists, destroying Object!");
         Destroy(this);
     }
 }
 /// <summary>
 /// Método Awake, que se ejecuta cuando carga el script
 /// </summary>
 void Awake()
 {
     // Se instancia a si misma
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
         return;
     }
 }
Exemplo n.º 5
0
 protected override void Cancel()
 {
     TutorialUIManager.Destroy(_arrow);
 }