Example #1
0
 public override void OnInspectorGUI()
 {
     targetGun = (Gun)target;
     base.OnInspectorGUI();
     EditorGUILayout.LabelField("Damage Per Shot", string.Format("{0:f2}", targetGun.GetDamagePerShot()));
     EditorGUILayout.LabelField("Damage Per Second", string.Format("{0:f2}", targetGun.GetDamagePerSecond()));
 }