Advertisement
Guest User

State script

a guest
Jul 28th, 2021
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [CreateAssetMenu(menuName = "State")]
  6. public class State : ScriptableObject
  7. {
  8. //Config Variables
  9. [SerializeField] State[] nextStates;
  10. public int[] optionsdamage;
  11. public int[] optionsammocost;
  12. //this is the thing you want:
  13. public AudioClip[] optionsounds;
  14.  
  15. [TextArea(10, 14)] [SerializeField] string storytext;
  16. public string roomcurrent;
  17. public string GetStateStory()
  18. {
  19. return storytext;
  20. }
  21.  
  22. public State[] GetNextStates()
  23. {
  24. return nextStates;
  25. }
  26.  
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement