private void Start() { equipmentDisplay = Resources.FindObjectsOfTypeAll <EquipmentDisplay>()[0].GetComponent <EquipmentDisplay>(); TurnManager.gm = this; cam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); cameraBase = GameObject.FindGameObjectWithTag("CameraBase"); }
public override void Awake() { base.Awake(); equipDisplay = PlayerController.localPlayer.GetComponent <EquipmentDisplay>(); if (equipSlots == null) { equipSlots = new List <EquipSlot>(); } equipSlots.Add(this); }