public ExtortPersonAction(CitizenBehaviour self, CitizenBehaviour target) { Self = self; ActionCompleted = false; try{ CurrentActionTarget = target.gameObject; } catch (System.Exception) { MonoBehaviour.Destroy(self.gameObject); } ObjectiveRange = 0.15f; //Make sure all citizens spawn inside houses, and then moves out Self.SetPersonActive(true); targetStatsScript = CurrentActionTarget.GetComponent <CitizenStats> (); targetScript = target as Citizen_Civilian; targetPosition = CurrentActionTarget.transform.GetChild(0).GetChild(0); animator = Self.anim; //Change this to a "chasing" system. Also in the talk action //ForceTargetToHalt (); Gunparticle = Self.transform.GetChild(0).GetChild(0).GetChild(1).GetComponentInChildren <ParticleSystem> (); ExecuteAction(); }
public Loader() { stats = CitizensApi.GetStats(); local_course = CourseProvider.GetLocalCourse(); crypto_course = CourseProvider.GetCryptoCourse(); }