using System.Collections; using System.Collections.Generic; using UnityEngine; public class C1 : MonoBehaviour { [SerializeField] public RobotMap RobotMap = null; // Start is called before the first frame update void Start() { //RobotMap RobotMap1=new RobotMap(); //RobotMap1.info = new RobotMapInfo(); //RobotMap = RobotMap1; Debug.LogError($"RobotMap£º{RobotMap != null}£¬RobotMap.info£º{RobotMap.info != null}"); } // Update is called once per frame void Update() { } }