BossFight.CmdReceiveDamageCristalProjectile C# (CSharp) Method

CmdReceiveDamageCristalProjectile() private method

private CmdReceiveDamageCristalProjectile ( float armor, GameObject projectile ) : void
armor float
projectile GameObject
return void
    private void CmdReceiveDamageCristalProjectile(float armor, GameObject projectile)
    {
        this.syncChar.Life -= 100 * 100f / armor;
        projectile.GetComponent<SyncElement>().Elmt.Life = 0;
    }