Ejemplo n.º 1
0
    public override void OnFinish()
    {
        var baseColor = new Color(1, 1, 1, 1);

        spriteRenderer.color = baseColor;
        blinkOnHit.SetRegularColor(baseColor);
        characterState.RemoveStatusEffect(this);
    }
Ejemplo n.º 2
0
 public override void OnStart(GameObject target)
 {
     characterHealth = target.GetComponent <IHasHealth>();
     characterState  = target.GetComponent <CharacterState>();
     spriteRenderer  = target.GetComponent <SpriteRenderer>();
     blinkOnHit      = target.GetComponent <BlinkOnHit>();
     blinkOnHit.SetRegularColor((Config as PoisonConfig).PoisonedEnemyColor);
     spriteRenderer.color = (Config as PoisonConfig).PoisonedEnemyColor;
     characterState.AddStatusEffect(this);
 }