// Use this for initialization void Start() { animator = GetComponent<Animator>(); boxCollider = GetComponent<BoxCollider>(); countCoinsScript = GameObject.Find("GameManager").GetComponent<CountCoins>(); }
// Use this for initialization void Start() { countCoins = player.GetComponent <CountCoins>(); }
public void acceptance_test() { int ways = CountCoins.waysForCents(15); Assert.AreEqual(6, ways); }
public static void assertWays(int expected, int cents) { Assert.AreEqual(expected, CountCoins.waysForCents(cents)); }
static void Main(string[] args) { var x = CountCoins.CountCombinations(4, new[] { 1, 2 }); Console.Read(); }