State.State C# (CSharp) Method

State() public method

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

Usage Example

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