// Use this for initialization
 void Start()
 {
     animator       = GetComponent <Animator>();
     playerScript   = GetComponent <Player> ();
     swordScript    = GetComponent <SwordDirection>();
     bowScript      = GetComponent <Bow>();
     movementScript = GetComponent <ArrowKeyMovement>();
 }
Пример #2
0
 // 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>();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     swordScript = GetComponent <SwordDirection> ();
 }