using System.Collections; using System.Collections.Generic; using UnityEngine; // TopdownרÓõÄtransform public class Transform2D : MonoBehaviour { public const float ORTHO_FACTOR = 1f; // 45¡ã public float alias_x { get { return z; } } public float alias_y { get { return -x; } } public float alias_h { get { return y; } } public float x { get { return 0; } } public float y { get { return 0; } set { } } public float z { get { return 0; } set { } } private Vector3 m_InnerPosition; // x, y, h public Vector3 position // { get { return m_InnerPosition; } } public float angle { get { return 0; } set { } } public Vector3 forward { get { return Vector3.zero; } } public Vector3 up { get { return Vector3.zero; } } public Vector3 right { get { return Vector3.zero; } } public Vector2 orthocoord { get { Vector2 ortho = new Vector2(); ortho.x = x; ortho.y = y + ORTHO_FACTOR * z; return ortho; } } }