1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RtkTest : MonoBehaviour
- {
- public bool state;
- public Vector2 testPos;
- public RtkPos rtkPos;
- public RtkTrigger rtkTrigger;
- void Update()
- {
- if(!rtkTrigger.finish)
- if(state)
- {
- Vector2 pos = testPos + new Vector2(Random.Range(1, 10) / 10.0f, Random.Range(1, 5) / 10.0f)-new Vector2(API_SVR.GetHead().position.x,API_SVR.GetHead().position.z);
- rtkPos.SettingPos(pos);
- }
- }
- }
|