// Use this for initialization void Start() { guardManager = guardGauge.GetComponent <GuardGaugeManeger>(); GuardShapeInactive(); //AudioSourceコンポーネントを取得し、変数に格納 AudioSource[] audioSources = GetComponents <AudioSource>(); sound01 = GetComponent <AudioSource>(); playerRbody = player.GetComponent <Rigidbody2D>(); comboManeger = comboManagerObj.GetComponent <ComboManeger>(); }
// Use this for initialization void Start() { rbody = GetComponent <Rigidbody2D> (); animator = GetComponent <Animator> (); //AudioSourceコンポーネントを取得し、変数に格納 AudioSource[] audioSources = GetComponents <AudioSource>(); sound01 = audioSources[0]; sound02 = audioSources[1]; comboManeger = comboManagerObj.GetComponent <ComboManeger>(); }
// Use this for initialization void Start() { comboManeger = comboManagerObj.GetComponent <ComboManeger>(); }
// Use this for initialization void Start() { playerManager = player.GetComponent <PlayerManager>(); comboManeger = comboManagerObj.GetComponent <ComboManeger>(); }