start public coroutine from another script unity
using UnityEngine;
using System.Collections;
public class myCallTimer : MonoBehaviour
{
void Start()
{ //myTimer script attach at Main Camera, than
StartCoroutine(Camera.main.GetComponent<myTimer>().Counter());
}
}
Are there any code examples left?
New code examples in category C#