State.State C# (CSharp) 메소드

State() 공개 메소드

public State ( GameObject _Person ) : System.Collections
_Person GameObject
리턴 System.Collections
    public State(GameObject _Person)
    {
        this.Person = _Person;
        this.Person_ctrl = _Person.GetComponent<Hero>();
    }

Usage Example

예제 #1
0
 public void MoveLeft()
 {
     if (!State.State().Equals(MarioState.Duck))
     {
         rigidbody.MoveLeft();
     }
     else
     {
         FacingRight = false;
     }
 }