Answers for "unity start public coroutine"

C#
1

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());   
}  
}
Posted by: Guest on May-18-2021

C# Answers by Framework

Browse Popular Code Answers by Language