public void SetBehaviour(RoundRecordContainer shadowActionsRecord) { this.shadowActionsRecord = shadowActionsRecord; actualPositionTarget = this.shadowActionsRecord.roundMovementRecords[0]; if (shadowActionsRecord.roundShootingRecords.Count > 0) { actualInQeueAction = this.shadowActionsRecord.roundShootingRecords[0]; } else { allActionsMade = true; } startMovingTime = Time.time; transform.position = actualPositionTarget.position; timeBetweenChangingPositions = GameManager.Instance.playerRec.recordTime; StartCoroutine(WaitTime(startingWaitTime)); allPositionsMade = false; }
protected bool Equals(RoundRecordContainer other) { return(Equals(roundMovementRecords, other.roundMovementRecords) && Equals(roundShootingRecords, other.roundShootingRecords)); }