TestSetup.cs 582 B

1234567891011121314151617181920212223242526272829
  1. using UnityEngine;
  2. public class TestSetup : MonoBehaviour
  3. {
  4. void Awake()
  5. {
  6. // 初始化狗数据用于测试
  7. DogProperty puppy = new DogProperty();
  8. UserProperty.dogs.Add(puppy);
  9. if (EnviromentSetting.languageData == null)
  10. {
  11. EnviromentController.InitialGameEnviroment();
  12. }
  13. }
  14. // Start is called once before the first execution of Update after the MonoBehaviour is created
  15. void Start()
  16. {
  17. }
  18. // Update is called once per frame
  19. // void Update()
  20. // {
  21. // }
  22. }