private void Inif() { o_mouseRecorder = GameObject.Find("MouseRecorder"). GetComponent <MouseRecorder>(); o_magicDeployer = GameObject.Find("MagicDeployer"). GetComponent <MagicDeployer>(); o_player = GameObject.Find("Player"); }
private void Inif() { m_lineRenderer = transform.GetComponent <LineRenderer>(); o_mouseRecorder = GameObject.Find("MouseRecorder"). GetComponent <MouseRecorder>(); m_lineRenderer.enabled = false; /*空間確保*/ m_pos = new Vector3[m_maxLineLength]; for (int i = 0; i < m_maxLineLength; i++) { m_pos[i] = new Vector3(); } m_cleared = true; m_dataReaded = false; }
protected override void SonInif() { o_gameManager = GameObject.Find("GameManager"); m_mouseRecorder = GameObject.Find("MouseRecorder"). GetComponent <MouseRecorder>(); }
private void Awake() { instance = this; }