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.

24 lines
484 B

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