少年修仙传客户端代码仓库
client_Hale
2018-11-19 c39874be546dab5c7164aac5d0cfb1539a762b54
382 增加跟随目标位置的测试脚本
2个文件已添加
29 ■■■■■ 已修改文件
Core/Common/SyncTargetPos.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/Common/SyncTargetPos.cs.meta 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Core/Common/SyncTargetPos.cs
New file
@@ -0,0 +1,17 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SyncTargetPos : MonoBehaviour
{
    public Transform target;
    // Update is called once per frame
    void Update()
    {
        if (target)
        {
            transform.position = target.position;
        }
    }
}
Core/Common/SyncTargetPos.cs.meta
New file
@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: b04ecd0881278cc4bad0070cb1d06457
timeCreated: 1542595938
licenseType: Pro
MonoImporter:
  serializedVersion: 2
  defaultReferences: []
  executionOrder: 0
  icon: {instanceID: 0}
  userData:
  assetBundleName:
  assetBundleVariant: