Пример #1
0
    private void Start()
    {
        pweapon = FindObjectOfType <AN_PlayerWeapon>();
        manager = FindObjectOfType <AN_GameManager>();
        Belt    = pweapon.Belt;
        DropPos = pweapon.DropPosition;

        rb             = GetComponent <Rigidbody>();
        rb.isKinematic = true;

        lgt = GetComponent <Light>();
    }
Пример #2
0
    private void OnTriggerEnter(Collider other)
    {
        AN_PlayerWeapon PWeapon = other.GetComponent <AN_PlayerWeapon>();

        if (PWeapon != null && CurrGetingTimer >= GettingTimer && manager.ActivatedComputers == 3)
        {
            if (PWeapon.WeaponInHands != null)
            {
                PWeapon.WeaponInHands.Selected = false;
            }
            PWeapon.WeaponInHands = this;
            Selected = true;
        }
    }