1
Fork 0
mirror of https://github.com/Steffo99/gravity-fusion.git synced 2024-11-21 16:04:18 +00:00

Add TempUpgradesToggler

This commit is contained in:
Steffo 2019-10-07 00:45:52 +02:00
parent da73e122ae
commit cf4e9fd092
3 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,15 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TempUpgradesToggler : MonoBehaviour
{
public GameObject upgrades;
void Update()
{
if(Input.GetKeyDown(KeyCode.P)) {
upgrades.SetActive(!upgrades.activeSelf);
}
}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 417c5b9357424244781a5ac6c548630c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -265,6 +265,7 @@ GameObject:
- component: {fileID: 9012813807232547518} - component: {fileID: 9012813807232547518}
- component: {fileID: 4937878819460165300} - component: {fileID: 4937878819460165300}
- component: {fileID: 1086337020} - component: {fileID: 1086337020}
- component: {fileID: 6405160859608101276}
m_Layer: 0 m_Layer: 0
m_Name: GameController m_Name: GameController
m_TagString: GameController m_TagString: GameController
@ -526,6 +527,19 @@ MonoBehaviour:
layers: layers:
- {fileID: 4850948939192426854} - {fileID: 4850948939192426854}
- {fileID: 1636788351} - {fileID: 1636788351}
--- !u!114 &6405160859608101276
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4669070901862137127}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 417c5b9357424244781a5ac6c548630c, type: 3}
m_Name:
m_EditorClassIdentifier:
upgrades: {fileID: 0}
--- !u!1 &7887871963136015922 --- !u!1 &7887871963136015922
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0