Quantcast
Channel: Answers for "Send value to another script"
Viewing all articles
Browse latest Browse all 4

Answer by Asthegor

0
0
I had the same issue. In my C# script, I made this : void Start () { GameObject targetMoverObject = GameObject.FindGameObjectWithTag ("Target"); if (targetMoverObject != null) { targetMover = targetMoverObject.GetComponent (); } if (targetMover == null) { Debug.Log ("Cannot find 'TargetMover' script"); } } void Update () { targetMover.speed = targetMover.speed + level; } The purpose of this script is to increase the speed of the "transform.right".

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images