void Awake() { id = GetNextMaskID(); bodyAnimation = Instantiate(ResourceLoader.GetPrefab(R_PrefabType.TentacleBody)).GetComponent <Animator>(); //移動中の音を再生 moveAudio = AudioManager.Play(SEType.TentacleMove); moveAudio.volume = 0; state = TentacleAnimState.Move; }
/// <summary> /// アニメーションを変更する /// </summary> /// <param name="state"></param> public void SetAnimatonState(TentacleAnimState state) { bodyAnimation.speed = 1; bodyAnimation.SetInteger("animState", (int)state); this.state = state; }