// Use this for initialization void Start() { tempPosition = transform.position; cam = GameObject.Find("Station Camera").GetComponent <StationCamera>(); DOF = cam.gameObject.GetComponent <DepthOfFieldScatter>(); cameraTm = GameObject.Find("Station Camera").transform; OrigScale = gameObject.transform.localScale.y; effect = transform.FindChild("effect").gameObject; if (ANIMATE_3) { animator_3 = gameObject.GetComponent <Greeble_3_Animator>(); Debug.Log(animator_3); } if (ANIMATE_5) { animator_5 = gameObject.GetComponent <Greeble_5_Animator>(); Debug.Log(animator_5); } if (SPINS) { spinner = gameObject.GetComponent <ObjectSpinner>(); Debug.Log("This is spinner: " + spinner); } }
// Use this for initialization void Start() { cam = GameObject.Find("Station Camera").GetComponent <StationCamera>(); cameraTm = GameObject.Find("Station Camera").transform; }