λ§μ½
if A collison B
A.hp -= 5
μ΄λΌκ³ ν λ
var hitObj = valueSource(hp)
if hitObj == B
print("Bμκ² λ§μλ€!!!")
μ΄λ°μμΌλ‘ κ°νΈνκ² λ°μ μ¬μ μλ λ°©λ² μμ??
λ§μ½
if A collison B
A.hp -= 5
μ΄λΌκ³ ν λ
var hitObj = valueSource(hp)
if hitObj == B
print("Bμκ² λ§μλ€!!!")
μ΄λ°μμΌλ‘ κ°νΈνκ² λ°μ μ¬μ μλ λ°©λ² μμ??
μλμ§ μλμ§λ§ μκ³ μΆμκ±°μ? λΉμ°ν μμ
μμ§