Пример #1
0
    private void InitFacilityBtn()
    {
        Vector3 zero = Vector3.zero;

        for (int i = 0; i < this.facilityChildButtonList.Count; i++)
        {
            GameObject gameObject = this.facilityChildButtonList[i];
            zero.z = gameObject.transform.localPosition.z;
            gameObject.transform.localPosition = zero;
            zero.z = 1f;
            gameObject.transform.localScale = zero;
            EfcCont component = gameObject.GetComponent <EfcCont>();
            component.SetColor(new Color(1f, 1f, 1f, 0f));
            gameObject.GetComponent <GUICollider>().activeCollider = false;
        }
        this.isShowBtnFacility = false;
    }
Пример #2
0
 private void EFC_FadeInCol(bool isFadeIn, EfcCont ec)
 {
     if (null != ec)
     {
         this.actStartEfc();
         if (isFadeIn)
         {
             this.tempCol   = ec.GetColor();
             this.tempCol.a = this.offCol.a;
             ec.SetColor(this.tempCol);
             this.tempCol.a = this.onCol.a;
             ec.ColorTo(this.tempCol, this.fadeInTime, new Action <int>(this.actEndEfc), iTween.EaseType.linear, 0f);
         }
         else
         {
             this.tempCol   = ec.GetColor();
             this.tempCol.a = this.offCol.a;
             ec.ColorTo(this.tempCol, this.fadeOutTime, new Action <int>(this.actEndEfc), iTween.EaseType.linear, 0f);
         }
     }
 }