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>(); }
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; }
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); }
void Awake() { health_stamina_bars = GameObject.FindGameObjectWithTag("Health_Stamina"); health_stamina = health_stamina_bars.GetComponent <Health_Stamina>(); sprint = speed * 2; }