private void Start() { ba = GetComponent <BeilanAttack>(); Physics2D.IgnoreLayerCollision(8, 10, false); rend = GetComponent <Renderer>(); c = rend.material.color; health = startHealth; }
// Start is called before the first frame update void Start() { iniWallCheckDistance = wallCheckDistance; rb = GetComponent <Rigidbody2D>(); ba = GetComponent <BeilanAttack>(); bh = GetComponent <BeilanHealth>(); wallHopDirection.Normalize(); wallJumpDirection.Normalize(); }
// Start is called before the first frame update void Start() { beilan = GameObject.FindGameObjectWithTag("Player"); rb = gameObject.GetComponent <Rigidbody2D>(); ba = beilan.GetComponent <BeilanAttack>(); }