Beispiel #1
0
 /// <summary>
 /// 停止明亮交替表现
 /// </summary>
 public void StopTweenColor()
 {
     if (m_Core.m_type == ShipBuildType.BuildRoom)
     {
         (m_Building.m_Property as BuildProperty).SetColor("_Emission", m_initialEmissionColor);
     }
     else if (m_Core.m_type == ShipBuildType.Soldier)
     {
         RolePropertyM rpm = GetComponent <RolePropertyM>();
         if (rpm)
         {
             (rpm.GetLife() as Role).RoleSkinCom.TweenPingponeColor(new Color(0.15f, 0.15f, 0.15f, 0), 0.5f);
         }
     }
 }
    public override void ActiiveStart()
    {
        SoundPlay.Play("skill_duang", false, false);
        Transform     t     = null;
        RolePropertyM rpm   = (m_Skin as RoleSkin).GetRolePropertyM();
        GameObject    posgo = m_Skin.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.EffectBottomPos);

        if (posgo != null)
        {
            t = posgo.transform;

            //m_effectgo = SkillEffects._instance.LoadEffect("effect/prefab/", "1001081",t.position,0.75f,true);
            GameObjectActionExcute       gae      = EffectM.LoadEffect(EffectM.sPath, m_LifePrent.WalkDir == WalkDir.WALKLEFT? "1001111_01" : "1001111_02", t.position, t);
            GameObjectActionDelayDestory ndEffect = new GameObjectActionDelayDestory(m_Duration);
            gae.AddAction(ndEffect);
            m_effectgo = gae.gameObject;
        }
    }
    public GridActionCmdFly100003(Life Parent, List <Vector3> pos, float speed, int ModelType)
        : base(Parent, pos, speed, ModelType)
    {
        // Debug.Log("GridActionCmdFly100003");
        RoleSkin r = m_Skin as RoleSkin;

        if (r != null)
        {
            GameObject posgo = r.ProPerty.HelpPoint.GetVauleByKey(HelpPointName.LeftHandPos);
            if (posgo != null)
            {
                RolePropertyM rp = posgo.GetComponentInChildren <RolePropertyM>();
                if (rp != null)
                {
                    r.ChangeState(AnimatorState.Fly00000);
                }
            }
        }
        r.EnableColider(true);
    }
Beispiel #4
0
 public override void SetLifeProp(LifeProperty lifeObj)
 {
     m_Property = lifeObj as RolePropertyM;
 }