API


 

AltTrees.LoadedDelegate
 

public delegate void LoadedDelegate(long milliseconds);

Description


Delegate type for altTreesLoaded event. Milliseconds - the time taken to initialize.

 

Example:

using UnityEngine;
using AltSystems.AltTrees;

public class ExampleLoadedDelegate : MonoBehaviour
{
    public AltTrees manager;

    void Start()
    {
        manager.altTreesLoaded += loaded;
    }

    void loaded(long mills)
    {
        Debug.Log("AltTrees Loading time: " + mills);
    }
}