Пример #1
0
 //概要 : アイテムの操作状態を受け取る
 //引数 : bool state   カーソルの設定
 //返値 : なし
 //詳細 : 今はカーソルを変更するだけ
 public void ReceiveItemState(bool state)
 {
     if (state)
     {
         CursorMng.ChangeCursor(CursorManager.CursorState.NormalCursor);
     }
     else
     {
         CursorMng.ChangeCursor(CursorManager.CursorState.LockOnCursor);
     }
 }
Пример #2
0
    public void Die()
    {
        cursorManager.ChangeCursor(CursorManager.SelectedCursor.pointer);

        deathUI.SetActive(true);
        spawnOnDeathInstance = Instantiate(spawnOnDeath);
        spawnOnDeathInstance.transform.position = transform.position;

        gameObject.SetActive(false);
    }
Пример #3
0
    public void OnPause()
    {
        if (!isPaused)
        {
            isPaused = true;

            cursorManager.ChangeCursor(CursorManager.SelectedCursor.pointer);

            Time.timeScale = 0;
        }
        else
        {
            isPaused = false;

            cursorManager.ChangeCursor(CursorManager.SelectedCursor.crosshair);

            Time.timeScale = 1;
        }

        pauseUI.SetActive(isPaused);
    }
Пример #4
0
 public void UnselectWeapon()
 {
     weaponSelected = -1;
     cursorMng.ChangeCursor("default");
 }