public override bool Equals(object other) { if (other == null) { return(false); } DanceBattleTurnOutcomeMoveData danceBattleTurnOutcomeMoveData = other as DanceBattleTurnOutcomeMoveData; if (danceBattleTurnOutcomeMoveData == null) { return(false); } return(danceBattleTurnOutcomeMoveData.StartTimeInSeconds == StartTimeInSeconds); }
private void handleTurnOutcomeDanceMoveDataUpdated(DanceBattleMmoItem item) { if (string.IsNullOrEmpty(item.getTurnOutcomeDanceMoveData())) { return; } DanceBattleTurnOutcomeMoveData turnOutcomeMoveDataFromMmoItem = getTurnOutcomeMoveDataFromMmoItem(item); long num = Service.Get<INetworkServicesManager>().GameTimeMilliseconds / 1000; if (!danceBattleTurnOutcomeMoveData.Equals(turnOutcomeMoveDataFromMmoItem) && Math.Abs(turnOutcomeMoveDataFromMmoItem.StartTimeInSeconds - num) < 5) { danceBattleTurnOutcomeMoveData = turnOutcomeMoveDataFromMmoItem; if (TurnOutcomeMoveDataUpdatedAction != null) { TurnOutcomeMoveDataUpdatedAction(danceBattleTurnOutcomeMoveData); } } }
private void onTurnDataOutcomeMoveDataUpdated(DanceBattleTurnOutcomeMoveData turnOutcomeMoveData) { currentTurnOutcomeMoveData = turnOutcomeMoveData; startDancing(); }
protected override void awake() { danceBattleScoreData = new DanceBattleScoreData(); danceBattleTurnData = new DanceBattleTurnData(); danceBattleTurnOutcomeMoveData = new DanceBattleTurnOutcomeMoveData(); }