27 lines
620 B
C#
27 lines
620 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Unity.Mathematics;
|
|
using UnityEngine;
|
|
|
|
namespace BITFALL.GameMode
|
|
{
|
|
public class UnityInfoPlayerStart : MonoBehaviour, InfoPlayerStart
|
|
{
|
|
[SerializeField] private int property;
|
|
public int Property=> property;
|
|
public float3 Position=> transform.position;
|
|
public quaternion Rotation => transform.rotation;
|
|
public float4x4 Matrix => transform.localToWorldMatrix;
|
|
private void OnEnable()
|
|
{
|
|
NodeQuery.Register<InfoPlayerStart>(this);
|
|
}
|
|
private void OnDisable()
|
|
{
|
|
NodeQuery.Unregister<InfoPlayerStart>(this);
|
|
}
|
|
}
|
|
}
|
|
|