UnityPlatformer.CharacterHealth.SetInvulnerable C# (CSharp) Méthode

SetInvulnerable() public méthode

Turns a character invulnerable, but still can be killed using Kill NOTE use float.MaxValue for unlimited time
public SetInvulnerable ( float time ) : void
time float
Résultat void
    public void SetInvulnerable(float time) {
      invulnerability.Update(time);
      invulnerability.Reset();
    }
    /// <summary>