Ejemplo n.º 1
0
    // Start is called before the first frame update
    private void Start()
    {
        _cutMeter   = GameObject.FindGameObjectWithTag("BakeMator");
        _foodParent = GameObject.FindGameObjectWithTag("FoodParent");
        _cutSlider  = _cutMeter.GetComponent <CutGauge>()._slider;

        _playerContainer = InventoryManager.Instance.PlayerContainer;
    }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    private void Start()
    {
        _boilMeter  = GameObject.FindGameObjectWithTag("BoilMator");
        _foodParent = GameObject.FindGameObjectWithTag("FoodParent");
        _boilSlider = _boilMeter.GetComponent <FireControl_boil>()._slider;

        _playerContainer = InventoryManager.Instance.PlayerContainer;
    }
Ejemplo n.º 3
0
 // Start is called before the first frame update
 private void Start()
 {
     _soup               = transform.Find("Soup").gameObject;
     _playerInvObj       = GameObject.FindGameObjectWithTag("PlayerInventory");
     _playerInvContainer = InventoryManager.Instance.PlayerContainer;
     _playerInvRenderer  = _playerInvObj.GetComponent <InventoryRenderer>();
     _choicePopup        = GameObject.FindGameObjectWithTag("SelectWindow").GetComponent <ChoicePopup>();
     _soup.SetActive(false);
 }
Ejemplo n.º 4
0
    // Start is called before the first frame update
    private void Start()
    {
        blackSmoke.Stop();
        _bakeMeter  = GameObject.FindGameObjectWithTag("BakeMator");
        _foodParent = GameObject.FindGameObjectWithTag("FoodParent");
        _bakeSlider = _bakeMeter.GetComponent <FireControl>()._slider;

        _playerContainer = InventoryManager.Instance.PlayerContainer;
    }
    // Start is called before the first frame update
    private void Start()
    {
        _playerInvObj      = GameObject.FindGameObjectWithTag("PlayerInventory");
        _refInvObj         = GameObject.FindGameObjectWithTag("RefrigeratorInventory");
        _playerCanvasGroup = _playerInvObj.GetComponent <CanvasGroup>();
        _invManager        = InventoryManager.Instance;
        _playerContainer   = _invManager.PlayerContainer;
        _playerInvRenderer = _playerInvObj.GetComponent <InventoryRenderer>();

        // 冷蔵庫が存在しないシーンならCanvasGroupを取得しない
        if (_refInvObj == null)
        {
            return;
        }

        _refCanvasGroup = _refInvObj.GetComponent <CanvasGroup>();
    }
Ejemplo n.º 6
0
 // Start is called before the first frame update
 private void Start()
 {
     _playerContainer   = InventoryManager.Instance.PlayerContainer;
     _playerInvRenderer = GameObject.FindGameObjectWithTag("PlayerInventory").GetComponent <InventoryRenderer>();
     _choicePopup       = GameObject.FindGameObjectWithTag("SelectWindow").GetComponent <ChoicePopup>();
 }