private void OnAcquiredWeapon(AcquiredWeaponMessage obj) { DoorScript.Open(); holoRenderer.material.mainTexture = infoImages[2]; holoAnim.SetTrigger("triggerHolo"); }
private void OnNewGun(AcquiredWeaponMessage obj) { Destroy((_currentlyGrabbedItems[0] as WeaponPiece).gameObject); Destroy((_currentlyGrabbedItems[1] as WeaponPiece).gameObject); _currentlyGrabbedItems[0] = null; _currentlyGrabbedItems[1] = null; }