Пример #1
0
    //bool oneTime = true;

    private void Start()
    {
        if (myChar == null)
        {
            myChar = Main.instance.GetChar();
        }
        frames = 10;
    }
Пример #2
0
 private void Start()
 {
     _ppmat = new Material(shader);
     if (myChar == null)
     {
         myChar = Main.instance.GetChar();
     }
     _ppmat.SetVector("_Speed", speed);
 }
Пример #3
0
 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();
 }
Пример #4
0
    ///////////////////////////////////////
    //  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;
    }
Пример #5
0
    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;
    }
Пример #6
0
    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;
    }
Пример #7
0
    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);
    }
Пример #8
0
    protected override void OnBeginSkill()
    {
        if (_hero == null)
        {
            _hero = FindObjectOfType <CharacterHead>();
        }

        if (_movement == null)
        {
            _movement = _hero.GetCharMove();
        }

        _hero.ChangeDashForTeleport();

        _movement.ConfigureTeleport(teleportDistance);

        teleportEnabled = true;
    }
Пример #9
0
    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);
    }
Пример #10
0
 protected override void OnBeginSkill()
 {
     _hero   = Main.instance.GetChar();
     _shield = _hero.escudo;
 }
Пример #11
0
 private void Start()
 {
     character = Main.instance.GetChar();
 }
Пример #12
0
 protected override void OnBeginSkill()
 {
     _player = Main.instance.GetChar();
     SetPredicate(CanUseChange);
 }
 protected override void OnBeginSkill()
 {
     _hero   = Main.instance.GetChar();
     blocker = _hero.GetCharBlock();
 }
Пример #14
0
 private void Start()
 {
     _hero    = Main.instance.GetChar();
     heroLife = _hero.Life;
     maxHP    = heroLife.GetMax();
 }
Пример #15
0
 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();
 }
Пример #17
0
 void Awake()
 {
     charHead = GetComponentInParent<CharacterHead>();
     spawners = FindObjectsOfType<BulletSpawner>();
 }