// Updating second state from server public void RemoteSecondStateUpdate(string message) { SecondAnimationState state = (SecondAnimationState)Enum.Parse(typeof(AnimationSynchronizer.SecondAnimationState), message); this.secondState = state; UpdateAnimation(); }
// Automatically reset reload/shoot state after plating private IEnumerator ResetSecondState(float t) { yield return(new WaitForSeconds(t)); secondState = SecondAnimationState.None; }
// Automatically reset reload/shoot state after plating private IEnumerator ResetSecondState(float t) { yield return new WaitForSeconds(t); secondState = SecondAnimationState.None; }