Question by
jinology · Apr 25, 2016 at 01:43 AM ·
transformarray of gameobjects
How to access Script B's Transform[] from my current script A? i going to drag scene object's transform into the new array script B.
// Script A------------------------------------------------------------------------------------------------- void Start() {
for (int n = 0; n < target.Length; ++n) { target [n] = GameObject.Find ("Target" + (n + 1)).transform; }
// Script B--------------------------------------------------------------------------------------------------- public Transform[] targetpoints
Comment