Пример #1
0
        protected override void OnStart()
        {
            base.OnStart();

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

            buildChangeAvatar  = GetComponent <BBuildChangeAvatar>();
            buildChangeManager = GetComponent <BBuildChangeManager>();
        }
Пример #2
0
        public void Play(float time, GameObject effect, Action <object> call, object arg)
        {
            hideAvatarTime = time - showAvatarTime - 0.6f;
            if (hideAvatarTime <= 0)
            {
                hideAvatarTime = 0.02f;
            }
            _time = hideAvatarTime + 0.02f;
            BBuildChangeAvatar buildChangeAvatar = GetComponent <BBuildChangeAvatar>();

            buildChangeAvatar.Play(_time, hideAvatarTime, showAvatarTime, 0.01f, effect);

            StartCoroutine(DelayCallHandler(_time, call, arg));
        }
Пример #3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     anchorEffectUplevel = transform.FindChild(UnitAnchorName.EffectUplevel);
     buildChangeAvatar   = GetComponent <BBuildChangeAvatar>();
 }