Inheritance: InteractibleObject
コード例 #1
0
ファイル: Container.cs プロジェクト: Stumpstump/RoverGame
        public void Open(List<Ingredient> ingredients, ContainerObject container)
        {
            title.text = container.objectName;

            currentContainer = container;
            ingredientsInInventory = ingredients;
            InitializeInventorySlots();
            
            Open();
        }
コード例 #2
0
        public void Open(GameObject lfc, GameObject rfc, Transform camPos, ContainerObject co, GameObject cell)
        {
            cameraInPos = camPos;

            fuelCellContainer = co;
            rightCharger.chargeBar = rfc;
            leftCharger.chargeBar = lfc;

            cellObject = cell;
            
            StartCoroutine(OpenCoroutine());
        }