void ShinoRock() { if (!playerControl.ShinyRockMalus) { foreach (GuardIAController_v2 g in ObjectRefs.Instance.GAIC) { FOV_vBT f = g.gameObject.GetComponent <FOV_vBT>(); if (f != null) { f.viewRadius += malusShinyRock; } } playerControl.ShinyRockMalus = true; } }
// Start is called before the first frame update void Awake() { agent = GetComponent <NavMeshAgent>(); agent.updateRotation = false; agent.updateUpAxis = false; fow = GetComponent <FOV_vBT>(); turningDelay_tmp = -1; alertModeTime_tmp = -1; pointToGo = new List <Vector3>(); SetUpPatrollPoints(); ObjectRefs.Instance.GAIC.Add(this); }