예제 #1
0
    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());
        }
    }
예제 #2
0
 public void SetState(AssistState ast)
 {
     if (_isVisible)
     {
         _currentState = ast;
         Debug.Log("=> Assit State Change : " + _currentState.ToString());
     }
 }
예제 #3
0
    private void Awake()
    {
        _children          = GetComponentsInChildren <Transform>();
        _currentState      = startState;
        _assistStateLength = System.Enum.GetValues(typeof(AssistState)).Length;

        Debug.Log("=> Assit State Change : " + _currentState.ToString());
    }
예제 #4
0
    private void Awake()
    {
        _rigidbody         = GetComponent <Rigidbody>();
        _currentState      = startState;
        _assistStateLength = System.Enum.GetValues(typeof(AssistState)).Length;

        Debug.Log("=> Assit State Change : " + _currentState.ToString());
    }
예제 #5
0
 public static ServerPresetAssistState ToServerPresetAssistState(this AssistState state)
 {
     return((ServerPresetAssistState)state);
 }