// Start is called before the first frame update void Start() { if (_camera == null) { _camera = GameObject.Find("Main Camera").GetComponent <Ancor_Follow>(); } string tmp; tmp = Regex.Match(_inTrans.name, @"\d+").Value; _in = Int32.Parse(tmp); tmp = Regex.Match(_outTrans.name, @"\d+").Value; _out = Int32.Parse(tmp); if (TableauIn == null) { TableauIn = GameObject.Find("Tableau" + _in); } if (TableauOut == null) { TableauIn = GameObject.Find("Tableau" + _out); } }
// Start is called before the first frame update void Start() { if (_camera == null) { _camera = GameObject.Find("Main Camera").GetComponent <Ancor_Follow>(); } _camera.GetAnchors(); }