Esempio n. 1
0
        // Start is called before the first frame update
        void Start()
        {
            MathProxy proxy = new MathProxy();

            // Do the math
            Debug.LogError("4 + 2 = " + proxy.Add(4, 2));
            Debug.LogError("4 - 2 = " + proxy.Sub(4, 2));
            Debug.LogError("4 * 2 = " + proxy.Mul(4, 2));
            Debug.LogError("4 / 2 = " + proxy.Div(4, 2));
        }
Esempio n. 2
0
        public void Main()
        {
            // Create math proxy.
            var proxy = new MathProxy();

            // Do the math.
            Console.WriteLine("4 + 2 = " + proxy.Add(4, 2));
            Console.WriteLine("4 - 2 = " + proxy.Sub(4, 2));
            Console.WriteLine("4 * 2 = " + proxy.Mul(4, 2));
            Console.WriteLine("4 / 2 = " + proxy.Div(4, 2));
        }