private void OnEnable() { MainInput.input_MouseButtonDown0 += this.Fire; _objectDown = ObjectDown.Instance; _inventory = InventoryAndItems.Inventory.Instance; _canFire = true; }
private void OnEnable() { _buildHouse = FindObjectOfType <BuildHouse>(); Saver.saveGame += this.Save;// сохраняет настройки мира и персонажа при вызове события string keyPath = "SOFTWARE\\" + "BuildingSimulator" + "\\Settings"; Settings.RegKey.GetValue("LoadWorld", out string title, keyPath); _titleWorld = SHA1_Encode.Decryption(title, "z0s%b&I)Y%PW26A8"); _objectDown = ObjectDown.Instance; Load(); }
private void Awake() => ObDown = ObjectDown.Instance;
} //тип взрывчатки protected virtual void Start() { _objectDown = ObjectDown.Instance; _objectDown.Explosives.Add(this); _player = FindObjectOfType <FirstPersonController>().GetComponent <Rigidbody>(); }