void Start() { oberbeckValues = GameObject.FindGameObjectWithTag("GameController").GetComponent <Test> ().test; startPos = transform.position; startRotation = rotation.rotation; distance = (target.position - transform.position).magnitude; speed = (target.localPosition.x / oberbeckValues.MaxTime) * 0.1f; }
void Start() { oberbeckValues = GameObject.FindGameObjectWithTag("GameController").GetComponent <Test> ().test; }
// Use this for initialization void Start() { test = ScriptableObject.CreateInstance <Oberbeck> (); //test.UpPRadius (); //test.UpDistance (); }