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;
    }
Exemplo n.º 2
0
 protected bool Equals(RoundRecordContainer other)
 {
     return(Equals(roundMovementRecords, other.roundMovementRecords) && Equals(roundShootingRecords, other.roundShootingRecords));
 }