Jump to content

Recommended Posts

Posted

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
}

  • 2 months later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recommended Cloud Solution


    ksweb.net

×
×
  • Create New...

Important Information

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