// Use this for initialization void Start() { ctrl = GetComponentInChildren <pxSnarple>(); ctrl.length = 0.03f + transform.position.x * 0.02f; ctrl.start = 0.5f + transform.position.z * 0.4f; ctrl.speed = 1f + transform.position.y * 0.5f; ctrl.KeyOn(); }
// Use this for initialization void Start() { synth = GetComponent <pxSnarple>(); motion = GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { synth = GetComponentInChildren <pxSnarple>(); }