// Use this for initialization void Start() { UI_Pause = GameObject.Find("UI"); UI_Pause.SetActive(false); UI_Autosave = GameObject.Find("Autosave"); UI_Autosave.SetActive(false); shotLensController = GameObject.Find("ShotLens").GetComponent <ShotLensController>(); }
void Start() { this.transform.position = GameObject.Find("ShotLens").transform.position + new Vector3(0f, 0.06f, 0f); lineDot.GetComponent <SpriteRenderer>().color = new Vector4(1, 1, 1, 0f); shotLensController = GameObject.Find("ShotLens").GetComponent <ShotLensController>(); }