Exemplo n.º 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>();
        }
Exemplo n.º 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));
        }
Exemplo n.º 3
0
 protected override void OnAwake()
 {
     base.OnAwake();
     anchorEffectUplevel = transform.FindChild(UnitAnchorName.EffectUplevel);
     buildChangeAvatar   = GetComponent <BBuildChangeAvatar>();
 }