Exemplo n.º 1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            if (HasTerrainLayers(container.ExportVersion))
            {
                node.Add(TerrainLayersName, TerrainLayers.ExportYAML(container));
            }
            else
            {
                node.Add(SplatsName, Splats.ExportYAML(container));
            }

            node.Add(AlphaTexturesName, AlphaTextures.ExportYAML(container));
            node.Add(AlphamapResolutionName, AlphamapResolution);
            node.Add(BaseMapResolutionName, BaseMapResolution);
            if (HasColorSpace(container.ExportVersion))
            {
                node.Add(ColorSpaceName, ColorSpace);
                node.Add(MaterialRequiresMetallicName, MaterialRequiresMetallic);
                node.Add(MaterialRequiresSmoothnessName, MaterialRequiresSmoothness);
            }
            return(node);
        }
Exemplo n.º 2
0
        public YAMLNode ExportYAML(IAssetsExporter exporter)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("m_Splats", Splats.ExportYAML(exporter));
            node.Add("m_AlphaTextures", AlphaTextures.ExportYAML(exporter));
            node.Add("m_AlphamapResolution", AlphamapResolution);
            node.Add("m_BaseMapResolution", BaseMapResolution);
            node.Add("m_ColorSpace", ColorSpace);
            node.Add("m_MaterialRequiresMetallic", MaterialRequiresMetallic);
            node.Add("m_MaterialRequiresSmoothness", MaterialRequiresSmoothness);
            return(node);
        }
Exemplo n.º 3
0
        public void Write(AssetWriter writer)
        {
            if (HasTerrainLayers(writer.Version))
            {
                TerrainLayers.Write(writer);
            }
            else
            {
                Splats.Write(writer);
            }

            AlphaTextures.Write(writer);
            writer.Write(AlphamapResolution);
            writer.Write(BaseMapResolution);
            if (HasColorSpace(writer.Version))
            {
                writer.Write(ColorSpace);
                writer.Write(MaterialRequiresMetallic);
                writer.Write(MaterialRequiresSmoothness);
                writer.AlignStream();
            }
        }
Exemplo n.º 4
0
    new void Update()
    {
        base.Update();
        if (PV.IsMine)
        {
            if (champState == ChampState.UseSkill)
            {
                KissesUseSkill();
            }

            if (Input.GetKeyDown(KeyCode.Q))
            {
                Splats.SelectSpellIndicator("PointIndicator");
            }

            if (runQskill)
            {
                KissesQskill();
            }
        }
        else
        {
            if (gameObject.transform.GetChild(2).GetComponent <FogCoverable>().meActive == true)
            {
                //Debug.Log("meActive == true일때");
                gameObject.transform.GetChild(1).gameObject.SetActive(true);
                gameObject.transform.GetChild(8).gameObject.SetActive(true);
            }

            if (gameObject.transform.GetChild(2).GetComponent <FogCoverable>().meActive == false)
            {
                //Debug.Log("meActive == false일때");
                gameObject.transform.GetChild(1).gameObject.SetActive(false);
                gameObject.transform.GetChild(8).gameObject.SetActive(false);
            }
        }
    }
Exemplo n.º 5
0
    new void Update()
    {
        base.Update();
        if (PV.IsMine)
        {
            if (Input.GetKeyDown(KeyCode.E))
            {
                Splats.SelectSpellIndicator("PointIndicator");
            }

            if (runEskill)
            {
                CabulmaEskill();
            }

            if (eSkillTimeCheck)
            {
                if (!isEskillArrived)
                {
                    eSkillSpeed = 1.0f / eSkillCastTime;
                    moveTimer  += Time.deltaTime * eSkillSpeed;
                    Vector3 currentPos = Vector3.Lerp(transform.position, skillPosition, moveTimer);
                    currentPos.y      += eSkillHeight * Mathf.Sin(Mathf.Clamp01(moveTimer) * Mathf.PI);
                    transform.position = currentPos;
                }
                else
                {
                    eSkillTimeCheck = false;
                    eSkillCastTime  = 0.0f;
                    isEskillArrived = true;
                    isSkillCast     = false;
                    m_Anim.ResetTrigger("Eskill");
                    m_Anim.SetTrigger("RunIdle");
                    champState    = ChampState.Idle;
                    skillCode     = SkillCode.wait;
                    skillPosition = Vector3.zero;
                    eSkillSpeed   = 0.0f;
                    moveTimer     = 0.0f;
                    eSkillHeight  = 0.0f;
                    Invoke("CoolTime", eSkillCoolTime);
                }

                if (Vector3.Distance(skillPosition, playerTr.position) <= 0.3f)
                {
                    isEskillArrived             = true;
                    playerTr.transform.position = skillPosition;
                    gameObject.GetComponent <NavMeshAgent>().enabled = true;
                    PhotonNetwork.Instantiate("CabulmaEskill", skillPosition, Quaternion.identity);
                }
            }
        }
        else
        {
            if (gameObject.transform.GetChild(2).GetComponent <FogCoverable>().meActive == true)
            {
                //Debug.Log("meActive == true일때");
                gameObject.transform.GetChild(5).gameObject.SetActive(true);
            }

            if (gameObject.transform.GetChild(2).GetComponent <FogCoverable>().meActive == false)
            {
                //Debug.Log("meActive == false일때");
                gameObject.transform.GetChild(5).gameObject.SetActive(false);
            }
        }
    }