Answers for "tell a function from another script what to do unity"

C#
3

call function from another script unity

void Start()
{
    ClickToMove = FindObjectOfType<ClickToMoveScript>();
    ClickToMove.PlayWoodCuttingAnim();  
}
Posted by: Guest on April-23-2021
4

unity call function from another script

public otherScript other;

   void Update()
   {
     other.funtion();
   }
Posted by: Guest on June-03-2020

Code answers related to "tell a function from another script what to do unity"

C# Answers by Framework

Browse Popular Code Answers by Language