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