using System.Collections;
using System.Collections.Generic;
public float playerHP = 100;
public float enemyDamage = 80;
public static void Main()
Program obj = new Program();
float currentPlayerHP = 999;
Console.WriteLine("fn currentPlayerHP = "+currentPlayerHP);
Console.WriteLine("fn test_out = "+obj.test_out(out currentPlayerHP));
private bool test_out(out float currentHP){
currentHP = playerHP - enemyDamage;
private bool test_ref(ref float currentHP){
currentHP = playerHP - enemyDamage;