Пример #1
0
    public void StopAttackBuff()
    {
        Collector            collector = GameObject.Find("Collector").GetComponent <Collector>();
        PlayerInteractAction PIA       = collector.Player.GetComponent <PlayerController>().Interact.GetComponentInChildren <PlayerInteractAction>();

        PIA.Damage             = PlayerConfig._Damage;
        PIA.InteractAreaRadius = PlayerConfig._InteractAreaRadius;
        foreach (GameObject Turret in collector.Turret)
        {
            TurretInteractAction TIA = Turret.GetComponent <TurretController>().Interact.GetComponentInChildren <TurretInteractAction>();
            TIA.Damage             = TurretConfig._Damage;
            TIA.InteractAreaRadius = TurretConfig._InteractAreaRadius;
        }
    }
Пример #2
0
    public void StartAttackBuff()
    {
        Collector            collector = GameObject.Find("Collector").GetComponent <Collector>();
        PlayerInteractAction PIA       = collector.Player.GetComponent <PlayerController>().Interact.GetComponentInChildren <PlayerInteractAction>();

        PIA.Damage             = PIA.Damage * AttackSF._ImproveDamage;
        PIA.InteractAreaRadius = PIA.InteractAreaRadius * (1 + AttackSF._ImproveInteractRadius);
        foreach (GameObject Turret in collector.Turret)
        {
            TurretInteractAction TIA = Turret.GetComponent <TurretController>().Interact.GetComponentInChildren <TurretInteractAction>();
            TIA.Damage             = TIA.Damage * AttackSF._ImproveDamage;
            TIA.InteractAreaRadius = TIA.InteractAreaRadius * (1 + AttackSF._ImproveInteractRadius);
        }
    }