/// <summary> /// クリップの追加 /// </summary> /// <param name="clip">アニメーション クリップ</param> /// <param name="playNow">今すぐ再生を開始するフラグ</param> public void AddClip(AnimationClip clip, bool playNow = false) { if (clip == null) { throw new ArgumentNullException ("Clip is null"); } if (playNow) { clip.Play (); } clips.Add (clip); }
public MyCharacter() { this.Speed = 4.0f; this.IsGrounded = false; this.gravitationalVelocity = new Vector3 (0, 1, 0); this.jumpSound = null; this.walkUp = null; this.walkDown = null; this.walkRight = null; this.walkLeft = null; }
/// <summary> /// クリップの削除 /// </summary> /// <param name="clip">アニメーション クリップ</param> public void RemoveClip(AnimationClip clip) { clips.Remove (clip); }