// Start is called before the first frame update
 void Start()
 {
     rb2D = gameObject.GetComponent <Rigidbody2D>();
     blacksmithAnimator    = GetComponent <Animator>();
     dropoffZoneController = dropoffZone.GetComponent <DropoffZoneController>();
     state = State.NOT_CARRYING;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     rb                    = gameObject.GetComponent <Rigidbody2D>();
     animator              = GetComponent <Animator>();
     curRampTime           = 0f;
     health                = maxHealth;
     moving                = false;
     hasInputThisFrame     = false;
     healthImmune          = false;
     hasSword              = true;
     hasShield             = true;
     hitbox                = GetComponent <Transform>().Find("Hitbox").GetComponent <CircleCollider2D>();
     dropoffZoneController = dropOffZone.GetComponent <DropoffZoneController>();
 }