This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#region Private Variables create a private variables to make secure your code and to access to the variable make a propierty of this variable | |
[SerializeField] private float damage; | |
public float Damage { | |
get{ | |
return damage; | |
} | |
set{ | |
if (value > 10) | |
damage = value; |