// Updating first state from server public void RemoteStateUpdate(string message) { BaseAnimationState state = (BaseAnimationState)Enum.Parse(typeof(AnimationSynchronizer.BaseAnimationState), message); this.baseState = state; UpdateAnimation(); }
// Settin first state void SetAnimationState(BaseAnimationState state) { if (state != this.baseState) { this.baseState = state; NetworkManager.Instance.SendAnimationState(state.ToString(), 0); } }
// Start is called before the first frame update void Start() { animationState_ = GetComponent <BaseAnimationState>(); animationState_.Animation = this; anim = GetComponent <Animator>(); }
// Settin first state void SetAnimationState(BaseAnimationState state) { if (state!=this.baseState) { this.baseState = state; NetworkManager.Instance.SendAnimationState(state.ToString(), 0); } }
//アニメーションステートのセット public void SetAnimation(BaseAnimationState animation) { animation = this; }