You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
577 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class TutorialSetup : MonoBehaviour
  5. {
  6. public Character character;
  7. public InventoryUI inventoryUI;
  8. // Start is called before the first frame update
  9. void Start()
  10. {
  11. StartCoroutine(wait(0.1f, new System.Action(LastStart)));
  12. }
  13. void LastStart()
  14. {
  15. inventoryUI.inventory = character.Inventory;
  16. }
  17. IEnumerator wait(float time, System.Action callback)
  18. {
  19. yield return new WaitForSeconds(time);
  20. callback();
  21. }
  22. }