CharacterBehavior.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
    public override void Start()
    {
        if (Application.loadedLevelName != "LoadingScreen" && Application.loadedLevelName != "OpeningScene")
        {
            MenuScript.levelNum = Application.loadedLevel;
        }
        Dying = false;
        checkWall = new Ray2D(transform.position, (transform.right));
        base.Start ();
        PlayerAnim = transform.FindChild("CharSpriteHolder").GetComponent<Animator>();
        mP = new Ray2D (new Vector2 (0, 0), new Vector2 (0, 0));
        HoldingImp = "";
        ImpSelect = GameObject.FindGameObjectWithTag ("ImpSelect");
        FacingRight = true;
        rb = GetComponent<Rigidbody2D> ();
        Dir = Vector2.right;
        //bc = GetComponent<Collider2D>() as BoxCollider2D;
        if (ImpSelect != null) {
            ImpSelect.GetComponent<Image> ().color = Demons [selected].GetComponent<SpriteRenderer> ().color;
        }
        if (GameObject.Find("ImpThrowCam") != null)
        {
            ImpThrowCam = GameObject.Find("ImpThrowCam").GetComponent<Camera>();
        }
        fallCheck = transform.position.y;
        transform.GetChild (4).gameObject.SetActive (false);
    }