Hi,
I just started playing with PM and wanted to translate unisky instance into a fsm.
The code is classic:
private UniSkyAPI uniSky;
private float timeOfDay;
private float speedOfTime = 0.4f;
public void Awake() {
// Define instance
GameObject uniSkyObject = GameObject.Find("UniSkyAPI");
uniSky = (UniSkyAPI) uniSkyObject.GetComponent(typeof(UniSkyAPI));
// Initiate and create default UniSky
uniSky.InstantiateUniSky();
I could find the game object and store it but can't figure how to access to InstantiateUniSky() and the others methods.
Thanks for your enlightenment