您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
|
- using System;
- using System.Collections.Generic;
- using UnityEngine;
-
- namespace coa4u
- {
- public class CalcerPosition : CalcerVector
- {
- Actor targetActor;
- Transform targetTransform;
-
- public CalcerPosition(Actor target)
- : base()
- {
- this.targetActor = target;
- }
-
- public CalcerPosition(Transform target)
- : base()
- {
- this.targetTransform = target;
- }
-
- public override Vector3 value
- {
- get
- {
- if (targetTransform != null)
- return (Vector3)targetTransform.position;
- else
- return (Vector3)targetActor.transformCached.position;
- }
-
- }
- }
- }
|