private void ShieldButtons() { using (EditorGUILayout.HorizontalScope hScope = new EditorGUILayout.HorizontalScope()) { if (GUILayout.Button("Reset")) { _target.ResetShield(); } if (GUILayout.Button("Get Shield")) { _target.GetShield(5f); } if (GUILayout.Button("Lose Shield")) { _target.LoseShield(5f); } } }
private void Initialize() { PlayerHealth.ResetHealth(); PlayerShield.ResetShield(); }