private void Awake() { Assert.IsNotNull(PrefabInfo); var instance = Instantiate(PrefabInfo); cinfo = instance.GetComponent <CanvasShowInfo>(); }