// Start is called before the first frame update void Start() { rb = GetComponent <Rigidbody>(); initialRotation = transform.rotation.eulerAngles; alertLevel = AlertLevel.LowAlert; cone.SetThresholds(LowAlertThreshold, MediumAlertThreshold, HighAlertThreshold); rand = new System.Random((int)(RotationSpeed * (SuspicionIncreasePerTick * 100) * ScanAngle * LookAnimCooldown) * (int)(System.DateTime.Now.Ticks % int.MaxValue)); Direction = rand.Next(2); if (Direction == 0) { Direction = -1; } RotationCount = 0; }