예제 #1
0
 protected override void OnAwake()
 {
     base.OnAwake();
     renderLayer        = GetComponent <RenderLayer>();
     anchor             = GetComponent <UnitAnchor>();
     buildChangeManager = GetComponent <BBuildChangeManager>();
 }
예제 #2
0
        protected override void OnStart()
        {
            base.OnStart();

            Coo.assetManager.Load(WarRes.build_legion_chenge, OnLoadRes);
            _team = unitData.legionId;

            buildChangeAvatar  = GetComponent <BBuildChangeAvatar>();
            buildChangeManager = GetComponent <BBuildChangeManager>();
        }