using UnityEngine; using UnityEngine.UI; using UnityEngine.EventSystems; using System; using System.Collections; using System.Diagnostics; using System.Collections.Generic; using LitJson; using Debug = UnityEngine.Debug; public class ManaSocial : Regist { #region Variable public static bool RankRecordFlag; public static int CommentRecordLastIndex; public static int CommentRecordFirstIndex; public static bool CommentRecordFlag; public static Vector3 CommentRecordPosition; public static bool IsPlayer; public static bool PullLock; public static bool UpdateLock; public static bool IsPanelOpen; public static int PlayerLastIndex=-1; public static int VisiteeLastIndex=-1; public static int PlayerFirstIndex; public static int VisiteeFirstIndex; public static int PlayerCommentPage; public static int VisiteeCommentPage; public static Text PraiseText; public static Button PraiseBtn; public static DateTime CommentTime; public static InputField InputField; public static ScrollRectPlus ScrollRectPlus; public static float RankTimer = 0; public static float PraiseTimer = 5; public static float CommentTimer = 0; public static List> PlayerCommentDatas = new List>(); public static List> VisiteeCommentDatas = new List>(); #endregion public void Update() { if (!ManaServer.RankReady) { RankTimer += Time.deltaTime; if (RankTimer >= 5) { RankTimer = 0; ManaServer.RankRequest(); } } if (ManaVisit.InVisit) { return; } CommentTimer += Time.deltaTime; if (CommentTimer >= 10) { CommentTimer = 0; if (!IsPanelOpen) { UpdatePage(true); } } PraiseTimer += Time.deltaTime; if (PraiseTimer >= 5) { //index += 1; //Debug.Log(index); //ManaServer.AddComment(ManaServer.SerialNumber, ManaServer.SerialNumber, index.ToString(), CommentType.Garden); PraiseTimer = 0; PraiseText.text = ManaServer.PraiseAmt.ToString(); } } public override void RegistValueA() { PraiseText = ManaReso.Get("C_PraiseText"); PraiseBtn = ManaReso.Get