Jump to content

delmarle

Registered
  • Posts

    0
  • Joined

  • Last visited

Posts posted by delmarle

  1. the event if (eData.eventType == "LOADING_SCENE_END") is not called while eData.eventType == "LOADING_SCENE_START" is called

     

    using UnityEngine;
    using UnityEngine.UI;
    using System.Collections;
    using AtavismExtend;
    
    public class UI_LoadingScreen : MonoBehaviour 
    {
    #region fields
    #endregion
    #region MonoBehaviour
    void Start () 
    {
    	RegisterEvent ();
    
    }
    #endregion
    
    #region ATAVISM logic
    private void RegisterEvent()
    {
    	AtavismEventSystem.RegisterEvent("LOADING_SCENE_START", this);
    	AtavismEventSystem.RegisterEvent("LOADING_SCENE_END", this);
    	AtavismEventSystem.RegisterEvent("PLAYER_TELEPORTED", this);
    }
    
    public void OnEvent(AtavismEventData eData) {
    	if (eData.eventType == "LOADING_SCENE_START") 
    	{
    
    		print("LOADING_SCENE_START");
    	}
    	if (eData.eventType == "LOADING_SCENE_END") 
    	{
    		print("LOADING_SCENE_end");
    	}
    }
    #endregion
    }

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.