HatIndex.cs (308B)
1 using System.Collections; 2 using System.Collections.Generic; 3 using UnityEngine; 4 5 public class HatIndex : MonoBehaviour 6 { 7 public Sprite[] images; 8 public GameObject[] objects; 9 10 public void Set(int player, GameObject hat) 11 { 12 PublicStatHandler.GetInstance().hats[player] = hat; 13 } 14 15 }