public ScoreCollection Evaluate(Map map, State state) { var s1 = new GoldScore((ushort)state.Hero1.Gold); var s2 = new GoldScore((ushort)state.Hero2.Gold); var s3 = new GoldScore((ushort)state.Hero3.Gold); var s4 = new GoldScore((ushort)state.Hero4.Gold); return(new ScoreCollection(s1, s2, s3, s4)); }
void Start() { gold = GameObject.FindGameObjectWithTag("Player").GetComponent <GoldScore>(); inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>(); for (int i = 0; i < 3; i++) { slots[i] = -1; } }
void Start() { inventoryTest = GameObject.FindGameObjectWithTag("Player").GetComponent <InventoryTest>(); gold = GameObject.FindGameObjectWithTag("Player").GetComponent <GoldScore>(); }