JetCharacter.cs 862 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace JTSystems
  5. {
  6. public class JetCharacter : MonoBehaviour
  7. {
  8. public enum CharacterType { Player, Bot }
  9. [SerializeField] private CharacterType characterType;
  10. // Start is called before the first frame update
  11. void Start()
  12. {
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. }
  18. public void IncreaseSize(float sizeIncreaseValue)
  19. {
  20. transform.localScale += sizeIncreaseValue * Vector3.one;
  21. }
  22. public void DecreaseSize(float sizeIncreaseValue)
  23. {
  24. transform.localScale -= sizeIncreaseValue * Vector3.one;
  25. }
  26. public CharacterType GetCharacterType()
  27. {
  28. return characterType;
  29. }
  30. }
  31. }