SampleSceneCtrl.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using FFalcon.XR.Runtime;
  2. using RayNeo;
  3. using RayNeo.Tool;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using UnityEngine;
  7. using UnityEngine.SceneManagement;
  8. using UnityEngine.UI;
  9. public class SampleSceneCtrl : MonoBehaviour
  10. {
  11. public void OnBtnClick(string sceneName)
  12. {
  13. SceneManager.LoadScene(sceneName);
  14. }
  15. public void CloseApp()
  16. {
  17. Application.Quit();
  18. }
  19. //void Update()
  20. //{
  21. // Vector3 MoveTarget = Camera.main.transform.TransformPoint(new Vector3(-64,0,446));
  22. // m_t.position = MoveTarget;
  23. // m_t.LookAt(Camera.main.transform);
  24. // m_t.rotation = Camera.main.transform.rotation;// FfalconApi.TransformDirection(Camera.main.transform);
  25. //}
  26. public void OpenBatteryInfo()
  27. {
  28. AndroidActivity.OpenSystemMonitoring(AndroidActivity.SystemMonitoringInfoType.ELECTRIC | AndroidActivity.SystemMonitoringInfoType.AVERAGE_ELECTRIC);
  29. }
  30. public void CloseBatteryInfo()
  31. {
  32. AndroidActivity.CloseSystemMonitoring();
  33. }
  34. }