Jump to content
Atavism Online

Bug found


delmarle
 Share

Recommended Posts

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
}

Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recommended Cloud Solution


    northnetworking.com

×
×
  • Create New...

Important Information

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