using System.Collections; using System.Collections.Generic; using UnityEngine; public class MobMark : MonoBehaviour { Transform tf_Target; private void Update() { if (tf_Target) transform.position = tf_Target.position; } public void Set(bool active, Transform tf) { gameObject.SetActive(active); if (active) { transform.SetPositionAndRotation(tf.position, Quaternion.Euler(Vector3.left * 90f)); tf_Target = tf; } } }