How to call a function in another gameObject's script?

preview_player
Показать описание
Let's learn about calling function from other scripts in C#. Today we learn how to do it in a few different ways by using a reference to the script, or by dynamically getting a reference to the game object that has this script by using either FindWithTag, Find or FindObjectOfType...

Reference some code from the video:

Free 2D Platformer Asset Pack:

Free 3D Platformer Asset Pack:
Рекомендации по теме
Комментарии
Автор

Thank you bro, I've searched for a long time to get on your video.

Marcos
Автор

They changed on Unity 6 :( System don't search for the script at this form

JogadorLevel