| | 1 | | using AvatarSystem; |
| | 2 | | using Cysharp.Threading.Tasks; |
| | 3 | | using UnityEngine; |
| | 4 | |
|
| | 5 | | public class Player |
| | 6 | | { |
| | 7 | | public string id; |
| | 8 | | public string name; |
| | 9 | |
|
| | 10 | | public Vector3 worldPosition |
| | 11 | | { |
| 94 | 12 | | get => worldPositionProp.Value; |
| 39 | 13 | | set => worldPositionProp.Value = value; |
| | 14 | | } |
| | 15 | |
|
| | 16 | | public Vector3 forwardDirection; |
| | 17 | | public bool isTalking; |
| | 18 | | public IAvatar avatar; |
| | 19 | | public IAvatarOnPointerDownCollider onPointerDownCollider; |
| | 20 | | public IPlayerName playerName; |
| | 21 | | public IAvatarAnchorPoints anchorPoints; |
| | 22 | | public Collider collider; |
| | 23 | |
|
| 62 | 24 | | private readonly AsyncReactiveProperty<Vector3> worldPositionProp = new (Vector3.zero); |
| | 25 | |
|
| 0 | 26 | | public IReadOnlyAsyncReactiveProperty<Vector3> WorldPositionProp => worldPositionProp; |
| | 27 | | } |