RunnerBehavior.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    public override void Start()
    {
        base.Start ();
        defaultSpeed = speed;
        rb = GetComponent<Rigidbody2D>();
        runAnim = GetComponent<Animator>();
        defaultDir = facingDir = Vector2.left;
        if (mobFacingRight) {
            Vector3 theScale = transform.localScale;
            theScale.x *= -1;
            transform.localScale = theScale;
            defaultDir = facingDir = Vector2.right;
        }
    }