Esempio n. 1
0
 void Start()
 {
     health_stamina_bars = GameObject.FindGameObjectWithTag("Health_Stamina");
     health_stamina      = health_stamina_bars.GetComponent <Health_Stamina>();
     playerGameObject    = GameObject.FindGameObjectWithTag("Player");
     meleeAttack         = playerGameObject.GetComponent <MeleeAttack>();
 }
Esempio n. 2
0
 void Start()
 {
     health_stamina_bars = GameObject.FindGameObjectWithTag("Health_Stamina");
     health_stamina      = health_stamina_bars.GetComponent <Health_Stamina>();
     weaponsCase         = GameObject.FindGameObjectWithTag("WeaponsCase");
     weaponSwiching      = weaponsCase.GetComponent <WeaponSwiching>();
     enemy         = GameObject.FindGameObjectWithTag("Enemy");
     enemyMobility = enemy.GetComponent <EnemyMobility>();
     shield        = false;
 }
Esempio n. 3
0
    void Awake()
    {
        health_stamina_bars = GameObject.FindGameObjectWithTag("Health_Stamina");
        health_stamina      = health_stamina_bars.GetComponent <Health_Stamina>();
        NPCText             = GameObject.Find("PersonalDialogue").GetComponent <Text>();

        modalPanel = ModalPanel.Instance();

        yesEvent    = new UnityAction(Yes);
        noEvent     = new UnityAction(No);
        cancelEvent = new UnityAction(Cancel);

        yesEvent2 = new UnityAction(Yes2);
    }
Esempio n. 4
0
 void Awake()
 {
     health_stamina_bars = GameObject.FindGameObjectWithTag("Health_Stamina");
     health_stamina      = health_stamina_bars.GetComponent <Health_Stamina>();
     sprint = speed * 2;
 }