Esempio n. 1
0
    void Awake()
    {
        id            = GetNextMaskID();
        bodyAnimation = Instantiate(ResourceLoader.GetPrefab(R_PrefabType.TentacleBody)).GetComponent <Animator>();

        //移動中の音を再生
        moveAudio        = AudioManager.Play(SEType.TentacleMove);
        moveAudio.volume = 0;

        state = TentacleAnimState.Move;
    }
Esempio n. 2
0
 /// <summary>
 /// アニメーションを変更する
 /// </summary>
 /// <param name="state"></param>
 public void SetAnimatonState(TentacleAnimState state)
 {
     bodyAnimation.speed = 1;
     bodyAnimation.SetInteger("animState", (int)state);
     this.state = state;
 }