InvokeRepeating doesnt seem to be working...

Hi folks.

I’m attempting to use invokerepeating to increase an int (minutes) by 1 every second. But it just flat out isn’t working.
Could anyone take a look at my code and see if they can figure out why?

        private int minutes = 0;
    	private int hours = 0;
    	// Use this for initialization
    	void Start () {
    		Camera.main.orthographicSize = Screen.height / 64f / 2f;
    	// Update is called once per frame
    	void Update () {
    	void AddTime () {
       		minutes ++;


After 1 second, you repeat AddTime every second, which makes variable minutes bigger. Use InvokeRepeating(“AddTime”,0,60) to make this work.

One more thing - InvokeRepeating should be used in Awake, where variables are declared. If you didn’t understood, just move it few lines up.