Browse Source

started Fix tutorial level pickup

master
JoshuaReason 5 years ago
parent
commit
e07200b81a
10 changed files with 96 additions and 2 deletions
  1. +8
    -0
      Assets/Models.meta
  2. +8
    -0
      Assets/Plugins/IngameDebugConsole/Android.meta
  3. +8
    -0
      Assets/Plugins/IngameDebugConsole/Prefabs.meta
  4. +8
    -0
      Assets/Plugins/IngameDebugConsole/Scripts.meta
  5. +8
    -0
      Assets/Plugins/IngameDebugConsole/Sprites/Unused.meta
  6. +8
    -0
      Assets/Scripts/LogicBlocks.meta
  7. +8
    -0
      Assets/Scripts/Tutorial.meta
  8. +28
    -0
      Assets/Scripts/Tutorial/TutorialSetup.cs
  9. +11
    -0
      Assets/Scripts/Tutorial/TutorialSetup.cs.meta
  10. +1
    -2
      Assets/Scripts/UI/InventoryUI.cs

+ 8
- 0
Assets/Models.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 296bd90e667df1f4697823a0aa45acf0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Plugins/IngameDebugConsole/Android.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3d7d7a61a5341904eb3c65af025b1d86
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Plugins/IngameDebugConsole/Prefabs.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 7dbc36665bc0d684db9a4447e27a7a4b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Plugins/IngameDebugConsole/Scripts.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 860c08388401a6d4e858fe4910ea9337
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Plugins/IngameDebugConsole/Sprites/Unused.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f6caae32d463529478f2186f47c2e3fe
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Scripts/LogicBlocks.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8936b441d7647f74884c94f97bfb8931
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 8
- 0
Assets/Scripts/Tutorial.meta View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 14f39603b4290b84c9441512b3c1563e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

+ 28
- 0
Assets/Scripts/Tutorial/TutorialSetup.cs View File

@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TutorialSetup : MonoBehaviour
{
public Character character;
public InventoryUI inventoryUI;
// Start is called before the first frame update
void Start()
{
StartCoroutine(wait(0.1f, new System.Action(LastStart)));
}
void LastStart()
{
inventoryUI.inventory = character.Inventory;
}
IEnumerator wait(float time, System.Action callback)
{
yield return new WaitForSeconds(time);
callback();
}
}

+ 11
- 0
Assets/Scripts/Tutorial/TutorialSetup.cs.meta View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 86a38bceffea2e34fbdc1a7a8a535207
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 1
- 2
Assets/Scripts/UI/InventoryUI.cs View File

@ -5,8 +5,7 @@ using UnityEngine;
public class InventoryUI : MonoBehaviour public class InventoryUI : MonoBehaviour
{ {
[SerializeField]
private Inventory inventory;
public Inventory inventory;
[SerializeField] [SerializeField]
private BagItem ItemPrefab; private BagItem ItemPrefab;

Loading…
Cancel
Save