示例#1
0
        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);
                }
            }
        }
示例#2
0
 private void Initialize()
 {
     PlayerHealth.ResetHealth();
     PlayerShield.ResetShield();
 }