August 2018
Intermediate to advanced
794 pages
28h 4m
English
To display multiple pickups of different objects as text totals via a dynamic Dictionary, follow these steps:
using UnityEngine;
public class PickUp : MonoBehaviour {
public enum PickUpType {
Star, Key, Heart
}
public PickUpType type;
}
using UnityEngine; public class PlayerController : MonoBehaviour { private InventoryManager inventoryManager; void Awake() { inventoryManager = GetComponent<InventoryManager>(); } void ...Read now
Unlock full access