예제 #1
0
 public bool SetProto(Pathea.EEntityProto Proto)
 {
     //        if (Proto == null)
     //            return false;	// always false
     //m_EntityProto = Proto;
     return(true);
 }
예제 #2
0
    public void SetRevivalMark(Pathea.EEntityProto Proto, bool show, float percent)
    {
        if (null == revivalMark)
        {
            Debug.LogWarning(this + "revivalMark is null");
            return;
        }

        if (Proto != Pathea.EEntityProto.Npc)
        {
            return;
        }

        if (!show)
        {
            revivalMark.gameObject.SetActive(false);
            SetStateMark(missionState);
            return;
        }

        revivalMark.gameObject.SetActive(true);
        revivalMark.material.SetFloat("_Percent", percent);
        SetStateMark(NpcMissionState.Max);
    }