Warning: Undefined array key "REMOTE_USER" in /kieuns/www/lib/plugins/googleanalytics/action.php on line 61
public class example : MonoBehaviour { void Example() { transform.Translate(0, 1, 0); GetComponent<Transform>().Translate(0, 1, 0); } } public class example : MonoBehaviour { void Update() { <OtherScriptName> otherScript = GetComponent<OtherScriptName>(); otherScript.DoSomething(); } }
public class example : MonoBehaviour { void Start() { GameObject go = GameObject.Find("SomeGuy"); go.GetComponent<OtherScript>().DoSomething(); GameObject player = GameObject.FindWithTag("Player"); player.GetComponent<OtherScript>().DoSomething(); } }