コード例 #1
0
    void Start()
    {
        animator = GetComponent <Animator>();
        OnPowerConnectionLost();

        if (powerGrid)
        {
            powerGrid.ConnectRecieverToGrid(this);
        }

        Command unlock = new Command("Unlock");

        unlock.OnProcessCommand += UnlockDoor;
        DeviceCommands.Add(unlock);
    }
コード例 #2
0
 private void Start()
 {
     powerGrid.ConnectRecieverToGrid(this);
     _audioSource = GetComponent <AudioSource>();
 }