Пример #1
0
 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);
 }
Пример #2
0
    void Start()
    {
        policeScript  = GetComponent <PoliceScript>();
        weaponManager = GetComponent <WeaponManager>();
        rb2d          = GetComponent <Rigidbody2D>();

        weaponManager.AddWeapon(WeaponFactory.GetWeapon("Gun 1"));
        weaponManager.NextWeapon();
        weapon = weaponManager.CurrentWeapon.GetComponent <IWeapon>();
    }
Пример #3
0
 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();
     }
 }
Пример #4
0
 void Start()
 {
     rg2d         = GetComponent <Rigidbody2D>();
     policeScript = GetComponent <PoliceScript>();
     animator     = GetComponent <Animator>();
 }
Пример #5
0
 private void Start()
 {
     policeScript = GetComponent <PoliceScript>();
     FindNewTargetPosition();
     policeScript.MovingState = MovingState.Walking;
 }