コード例 #1
0
ファイル: Key.cs プロジェクト: Valefors/Achromatic
    public override void PutObject(PutInteractable pFreeSpace)
    {
        transform.position = pFreeSpace.spawnPosition.position;
        putLocation        = pFreeSpace;
        putLocation.gameObject.SetActive(false);

        _isHolding = false;
    }
コード例 #2
0
    void SwitchPosition(MovableInteractable pObject)
    {
        transform.position = pObject.transform.position;
        putLocation        = pObject.putLocation;
        putLocation.gameObject.SetActive(false);
        _isHolding = false;

        pObject.GetComponent <MovableInteractable>().putLocation = null;
        pObject.GetComponent <MovableInteractable>().SetModeHolding();
    }
コード例 #3
0
    public void SetModeHolding()
    {
        _isHolding = true;
        if (putLocation != null)
        {
            putLocation.gameObject.SetActive(true);
        }
        putLocation = null;

        //AkSoundEngine.PostEvent("Play_Prendre", gameObject);
        PlayCorrectSound(true);
        gameObject.layer = Utils.OBJECT_LAYER;
    }
コード例 #4
0
    public virtual void PutObject(PutInteractable pFreeSpace)
    {
        transform.position = pFreeSpace.spawnPosition.position;
        putLocation        = pFreeSpace;
        putLocation.SetModeNormal();
        putLocation.gameObject.SetActive(false);

        _isHolding = false;

        //AkSoundEngine.PostEvent("Play_Poser", gameObject);
        PlayCorrectSound(false);
        gameObject.layer = Utils.DEFAULT_LAYER;

        PuzzleManager.instance.CheckCorrectPosition();
    }
コード例 #5
0
 void DoPutInteraction(PutInteractable pFreeSpace)
 {
     holdingObject.PutObject(pFreeSpace);
     holdingObject = null;
 }