123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- using SC;
- public class CloudManagerButton : MonoBehaviour
- {
-
-
-
- public CloudPoint _PointCloud;
- public static string ip;
- public GameObject keybood;
- public SCInputField text;
-
-
- void Start()
- {
- ip = GetString("ip");
- text.text = ip;
- }
-
- public void setIP()
- {
- SetString("ip", text.text);
- Debug.Log(ip+" ipip");
- _PointCloud.ip = text.text;
- _PointCloud.enabled = true;
- keybood.SetActive(false);
- }
-
-
-
-
-
- public static void SetString(string key, string value)
- {
- PlayerPrefs.SetString(key, value);
- PlayerPrefs.Save();
- }
-
-
-
-
-
-
- public static string GetString(string key)
- {
- return PlayerPrefs.GetString(key);
- }
-
-
-
-
- void Update()
- {
- if (Input.GetKeyDown(KeyCode.Escape))
- {
- Application.Quit();
- }
- }
- public void addhead()
- {
-
- _PointCloud.headPointSize += 0.001f;
- }
- public void redhead()
- {
-
- _PointCloud.headPointSize -= 0.001f;
- }
-
- public void addbody()
- {
-
- _PointCloud.bodyPointSize += 0.001f;
- }
- public void redbody()
- {
-
- _PointCloud.bodyPointSize -= 0.001f;
- }
- }
|