Mobile.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    public override void Start()
    {
        checkWall = new Ray2D(transform.position, (transform.right));
        //Grabs the direction the player is facing
        mobFacingRight = CharacterBehavior.FacingRight;

        //Flips the mobile objects sprite
        if (!mobFacingRight)
        {
            Flip ();
        }

        //Mobile Animator
        Anim = GetComponent<Animator> ();
        if (changeDir) {
            StartDir = -(CharacterBehavior.Dir);
        } else {
            StartDir = CharacterBehavior.Dir;
        }

        base.Start();
    }