protected override void OnAwake() { base.OnAwake(); renderLayer = GetComponent <RenderLayer>(); anchor = GetComponent <UnitAnchor>(); buildChangeManager = GetComponent <BBuildChangeManager>(); }
protected override void OnStart() { base.OnStart(); Coo.assetManager.Load(WarRes.build_legion_chenge, OnLoadRes); _team = unitData.legionId; buildChangeAvatar = GetComponent <BBuildChangeAvatar>(); buildChangeManager = GetComponent <BBuildChangeManager>(); }