Exemple #1
0
		static void Main(string[] args)
		{
			SDKLoader.load();

			updateRecord();

		}
Exemple #2
0
    void Update()
    {
        if (!lolsdkFinishedLoading)
        {
            lolsdkFinishedLoading = SDKLoader.CheckIfEverythingLoaded(); //If have not recieved lols jsons yet
        }
        if (lolsdkFinishedLoading && !flowInitialized)                   //Once recieved jsons, initialize the flow
        {
            LOLAudio.Instance.Initialize();
            curFlow         = InitializeFlowScript(currentState, ProgressTracker.Instance.currentProgress, true); //initial flow initialize
            flowInitialized = true;
        }

        if (flowInitialized)
        {
            if (curFlow == null)
            {
                return; //This means Initialize hasnt been called yet, can happen in weird Awake/Update way (should not though, but be safe)
            }
            float dt = Time.deltaTime;
            if (curFlow.initialized)
            {
                curFlow.Update(dt);
            }
        }
    }
Exemple #3
0
 public void Initialize(CurrentState cs)
 {
     //THIS IS THE FIRST POINT EVER ENTERED BY THIS PROGRAM. (Except for MainScriptInitializer.cs, who creates this script and runs this function for the game to start)
     GV.ms = this;            //set link so rest can access this script easily
     SDKLoader.StartLoader(); //Will link SDK calls from LoL to us (to recieve)
     currentState = cs;
 }
Exemple #4
0
 // Update is called once per frame
 void Update()
 {
     if (SDKLoader.CheckIfEverythingLoaded())
     {
         GetComponent <Text>().text = LangDict.Instance.GetText(jsonTextName);
         GameObject.Destroy(this);
     }
 }
Exemple #5
0
 static void Main(string[] args)
 {
     SDKLoader.load();
     doTest();
 }