public void SetState(float f) { if (f >= 1) { int ns = (int)_currentState + 1; if (ns >= _assistStateLength) { _currentState = (AssistState)0; } else { _currentState = (AssistState)ns; } Debug.Log("=> Assit State Change : " + _currentState.ToString()); } else if (f <= -1) { int ns = (int)_currentState - 1; if (ns < 0) { _currentState = (AssistState)(_assistStateLength - 1); } else { _currentState = (AssistState)ns; } Debug.Log("=> Assit State Change : " + _currentState.ToString()); } }
public void SetState(AssistState ast) { if (_isVisible) { _currentState = ast; Debug.Log("=> Assit State Change : " + _currentState.ToString()); } }
private void Awake() { _children = GetComponentsInChildren <Transform>(); _currentState = startState; _assistStateLength = System.Enum.GetValues(typeof(AssistState)).Length; Debug.Log("=> Assit State Change : " + _currentState.ToString()); }
private void Awake() { _rigidbody = GetComponent <Rigidbody>(); _currentState = startState; _assistStateLength = System.Enum.GetValues(typeof(AssistState)).Length; Debug.Log("=> Assit State Change : " + _currentState.ToString()); }
public static ServerPresetAssistState ToServerPresetAssistState(this AssistState state) { return((ServerPresetAssistState)state); }