// Use this for initialization void Start () { if(GameObject.Find("LobbyGUI") != null){ } else { fountainManager = GameObject.Find("TrapFountainManager").GetComponent<TrapFountainManager>(); //reset death timers and stuff. sessionManager.psInfo.LevelReset(); //this wont print because finishedloading is only true once all the start functions are called //in every object of the scene. if(sessionManager.finishedLoading) Debug.Log("ready"); } }
// Use this for initialization void Start () { fountainManager = GameObject.Find("TrapFountainManager").GetComponent<TrapFountainManager>(); FindPlatforms(); //if spawn point hasnt been set in inspector, find one if(RespawnPoint == null) RespawnPoint = GameObject.Find ("Respawn"); //this wont print because finishedloading is only true once all the start functions are called //in every object of the scene. if(sessionManager.finishedLoading) Debug.Log("ready"); }