// Use this for initialization void Start() { IsLaud = false; m_controller = gameObject.GetComponent <PlayerController>(); m_score = gameObject.GetComponent <PlayerScore>(); Anim = GetComponent <PlayerImageAnimation>(); }
// Use this for initialization void Start() { CanMove = true; IsAttack = false; //相手キャラのオブジェクトキャッシュしとく if (m_playerMode == PlayerMode.Player1) { m_otherPlayer = GameObject.FindWithTag("Player2"); } else { m_otherPlayer = GameObject.FindWithTag("Player1"); } m_otherController = m_otherPlayer.GetComponent <PlayerController>(); m_score = gameObject.GetComponent <PlayerScore>(); m_yukyu = gameObject.GetComponent <PlayerYukyu>(); m_particle.Stop(); PlayerSpeed = m_moveSpeed; Anim = GetComponent <PlayerImageAnimation>(); }