Exemple #1
0
 public SupportAttribute(string version, SupportRange range, bool isSupported, bool isTested)
 {
     this.version     = version;
     this.State       = range;
     this.IsSupported = isSupported;
     this.IsTested    = isTested;
 }
 public SupportAttribute(String version, SupportRange range, Boolean isSupported, Boolean isTested)
 {
     this.version = version;
     this.range = range;
     this.isSupported = isSupported;
     this.isTested = isTested;
 }
 public SupportAttribute(String version, SupportRange range, Boolean isSupported, Boolean isTested)
 {
     this.version     = version;
     this.range       = range;
     this.isSupported = isSupported;
     this.isTested    = isTested;
 }
Exemple #4
0
 public virtual void TakeDamage(float damage)
 {
     if (!isAlive || damage <= 0.0f)
     {
         return;
     }
     if (SupportRange.InSupportRange(gameObject))
     {
         damage *= 0.75f;
     }
     HeroUIScript.Damage(damage * (1.0f - dmgDamp * 0.01f), transform.position + Vector3.up *
                         10.0f);
     currHP -= damage * (1.0f - dmgDamp * 0.01f);
     Attacked?.Invoke();
     if (currHP <= 0.0f)
     {
         currHP  = 0.0f;
         isAlive = false;
         if (!(this is PortalInfo))
         {
             gameObject.SetActive(false);
             if (destroyable)
             {
                 Destroy(gameObject, 1.0f);
             }
         }
         Destroyed?.Invoke();
     }
 }
Exemple #5
0
 protected override void Start()
 {
     base.Start();
     ps       = GetComponentInChildren <ParticleSystem>();
     supprang = heroInfo.GetComponentInChildren <SupportRange>();
 }
 private void Update()
 {
     damage = SupportRange.InSupportRange(gameObject) ? baseDamage * 1.5f : baseDamage;
 }