Example #1
0
 // Use this for initialization
 void Start()
 {
     animator = GetComponent<Animator>();
     boxCollider = GetComponent<BoxCollider>();
     countCoinsScript = GameObject.Find("GameManager").GetComponent<CountCoins>();
 }
Example #2
0
 // 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));
 }
Example #5
0
        static void Main(string[] args)
        {
            var x = CountCoins.CountCombinations(4, new[] { 1, 2 });

            Console.Read();
        }