//bool oneTime = true; private void Start() { if (myChar == null) { myChar = Main.instance.GetChar(); } frames = 10; }
private void Start() { _ppmat = new Material(shader); if (myChar == null) { myChar = Main.instance.GetChar(); } _ppmat.SetVector("_Speed", speed); }
public Weapon(float dmg, float r, string n, float angle) { baseDamage = dmg; range = r; weaponName = n; this.angle = angle; originalAngle = angle; originalRange = range; _head = Main.instance.GetChar(); }
/////////////////////////////////////// // EQUIP /////////////////////////////////////// public void Equip() { _hero = Main.instance.GetChar(); _shield = _hero.escudo; dmgData = auxShield.GetComponent <DamageData>(); dmgData.Initialize(_hero); dmgData.SetDamage(damage).SetDamageTick(false).SetDamageType(damageType).SetKnockback(0).SetPositionAndDirection(_shield.transform.position); auxParent = auxShield.transform.parent; shieldStates = boomerangShieldStates.idle; }
protected override void OnBeginSkill() { if (head == null) { head = Main.instance.GetChar(); feedbackParticle.transform.position = head.transform.position; feedbackParticle.transform.SetParent(head.transform); } head.ChangeWeaponPassives += MoreDamage; }
protected override void OnBeginSkill() { Debug.Log("ESNTRO A LA SKILL"); if (head == null) { head = Main.instance.GetChar(); explosionParticles.transform.position = head.transform.position; explosionParticles.transform.SetParent(head.transform); } head.ChangeWeaponPassives += IsExplosion; }
protected override void OnBeginSkill() { //Creo la queue de redes if (_websDeployed == null) { _websDeployed = new Queue <Web>(); } //Busco al hero if (_hero == null) { _hero = FindObjectOfType <CharacterHead>(); } _hero.AddListenerToDash(WebFabrication); }
protected override void OnBeginSkill() { if (_hero == null) { _hero = FindObjectOfType <CharacterHead>(); } if (_movement == null) { _movement = _hero.GetCharMove(); } _hero.ChangeDashForTeleport(); _movement.ConfigureTeleport(teleportDistance); teleportEnabled = true; }
protected override void OnBeginSkill() { if (head == null) { head = Main.instance.GetChar(); } myBar.gameObject.SetActive(true); myBar.OnValueChange(0, head.screamsToSkill); head.GuiltUltimateSkill += PetrifyAllEnemies; head.AddScreamAction += UpdateHUD; feedbackParticle.transform.position = head.transform.position; Main.instance.eventManager.SubscribeToEvent(GameEvents.ENEMY_DEAD, SpawnScream); screamPool.StartPool(10); }
protected override void OnBeginSkill() { _hero = Main.instance.GetChar(); _shield = _hero.escudo; }
private void Start() { character = Main.instance.GetChar(); }
protected override void OnBeginSkill() { _player = Main.instance.GetChar(); SetPredicate(CanUseChange); }
protected override void OnBeginSkill() { _hero = Main.instance.GetChar(); blocker = _hero.GetCharBlock(); }
private void Start() { _hero = Main.instance.GetChar(); heroLife = _hero.Life; maxHP = heroLife.GetMax(); }
protected override void OnBeginSkill() { charHead = Main.instance.GetChar(); _characterAttack = Main.instance.GetChar().GetCharacterAttack(); _characterAttack.currentWeapon.AttackResult += OnSuccesAttack; }
protected override void OnBeginSkill() { _hero = Main.instance.GetChar(); }
void Awake() { charHead = GetComponentInParent<CharacterHead>(); spawners = FindObjectsOfType<BulletSpawner>(); }