private void Start() { this.Police = GameObject.Find("Police").GetComponent <PoliceScript>(); if (this.Prompt.Yandere.Class.LanguageGrade + this.Prompt.Yandere.Class.LanguageBonus < 1) { this.Prompt.enabled = false; } this.Note.SetActive(false); }
void Start() { policeScript = GetComponent <PoliceScript>(); weaponManager = GetComponent <WeaponManager>(); rb2d = GetComponent <Rigidbody2D>(); weaponManager.AddWeapon(WeaponFactory.GetWeapon("Gun 1")); weaponManager.NextWeapon(); weapon = weaponManager.CurrentWeapon.GetComponent <IWeapon>(); }
void OnCollisionEnter(Collision Col) { if (Col.gameObject.CompareTag("Player")) { PlayerController PC = Col.gameObject.GetComponent <PlayerController>(); PC.KillPlayer(); } else if (Col.gameObject.CompareTag("Police")) { PoliceScript PS = Col.gameObject.GetComponent <PoliceScript>(); PS.KillEnemy(); } else if (Col.gameObject.CompareTag("Civilian")) { CivilianScript CS = Col.gameObject.GetComponent <CivilianScript>(); CS.KillCivilian(); } }
void Start() { rg2d = GetComponent <Rigidbody2D>(); policeScript = GetComponent <PoliceScript>(); animator = GetComponent <Animator>(); }
private void Start() { policeScript = GetComponent <PoliceScript>(); FindNewTargetPosition(); policeScript.MovingState = MovingState.Walking; }