LifeGivenItem.cs 540 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. using System.Collections;
  3. public class LifeGivenItem : LifeBankItem
  4. {
  5. protected override void DoAction()
  6. {
  7. FacebookHelper.Instance.AcceptLife(_data, OnComplete);
  8. }
  9. protected override string GetTextKey()
  10. {
  11. return "lifeGiven.text";
  12. }
  13. protected override string GetButtonActionCompletedKey()
  14. {
  15. return "lifeBank.accepted";
  16. }
  17. protected override string GetButtonActionKey()
  18. {
  19. return "lifeBank.accept";
  20. }
  21. protected override string GetButtonActionInProgressKey()
  22. {
  23. return "lifeBank.accepting";
  24. }
  25. }