void Start() { animator = GetComponent <Animator>(); OnPowerConnectionLost(); if (powerGrid) { powerGrid.ConnectRecieverToGrid(this); } Command unlock = new Command("Unlock"); unlock.OnProcessCommand += UnlockDoor; DeviceCommands.Add(unlock); }
private void Start() { powerGrid.ConnectRecieverToGrid(this); _audioSource = GetComponent <AudioSource>(); }