Inheritance: MonoBehaviour
Beispiel #1
0
        /// <summary>
        /// Chart 설정 또는 변량에 대해 XML로 생성합니다.
        /// </summary>
        /// <param name="writer">xml writer</param>
        public override void GenerateXmlAttributes(XmlWriter writer)
        {
            base.GenerateXmlAttributes(writer);

            if (LogoUrl.IsNotWhiteSpace())
            {
                writer.WriteAttributeString("logoUrl", LogoUrl);
            }
            if (LogoPosition.HasValue)
            {
                writer.WriteAttributeString("logoPosition", LogoPosition.Value.ToString());
            }
            if (LogoAlpha.HasValue)
            {
                writer.WriteAttributeString("logoAlpha", LogoAlpha.ToString());
            }
            if (LogoScale.HasValue)
            {
                writer.WriteAttributeString("logoScale", LogoScale.ToString());
            }

            if (_logoLink != null)
            {
                _logoLink.GenerateXmlAttributes(writer);
            }
        }
 // Use this for initialization
 void Start()
 {
     pfx = GetComponent<ParticleSystem>();
     scale1 = logo1st.GetComponent<LogoScale>();
     scale2 = logo2nd.GetComponent<LogoScale>();
     fadeMat = GetComponent<Renderer>().sharedMaterial;
     matCol = Color.white;
     quadMat.color = Color.white;
     septraDustHolder = transform.parent.GetComponent<FireFirstTimeOnly>();
 }
 // Use this for initialization
 void Start()
 {
     pfx              = GetComponent <ParticleSystem>();
     scale1           = logo1st.GetComponent <LogoScale>();
     scale2           = logo2nd.GetComponent <LogoScale>();
     fadeMat          = GetComponent <Renderer>().sharedMaterial;
     matCol           = Color.white;
     quadMat.color    = Color.white;
     septraDustHolder = transform.parent.GetComponent <FireFirstTimeOnly>();
 }