// Use this for initialization void Start() { animator = GetComponent <Animator>(); playerScript = GetComponent <Player> (); swordScript = GetComponent <SwordDirection>(); bowScript = GetComponent <Bow>(); movementScript = GetComponent <ArrowKeyMovement>(); }
// Use this for initialization void Start() { rb = GetComponent <Rigidbody> (); currentHealth = maxHealth; changeHealthScript = GameObject.Find("HeartManager").GetComponent <ChangeHealth> (); anim = GetComponent <Animator> (); cameraScript = GameObject.FindWithTag("MainCamera").GetComponent <RoomSwitch> (); swordScript = GetComponent <SwordDirection> (); inventoryScript = GetComponent <Inventory> (); bowScript = GetComponent <Bow> (); boomerScript = GetComponent <boomerang>(); }
// Use this for initialization void Start() { swordScript = GetComponent <SwordDirection> (); }