Initialer Upload neues Unity-Projekt
This commit is contained in:
@ -0,0 +1,29 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class ExplosionControl : MonoBehaviour {
|
||||
public GameObject explosion1;
|
||||
public GameObject explosion2;
|
||||
public GameObject wall2;
|
||||
public GameObject wall1;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
if (Input.GetKey (KeyCode.Q)) {
|
||||
explosion1.SetActive (true);
|
||||
}
|
||||
if (Input.GetKey (KeyCode.W)) {
|
||||
wall2.SetActive (true);
|
||||
wall1.SetActive (false);
|
||||
}
|
||||
if (Input.GetKey (KeyCode.E)) {
|
||||
explosion2.SetActive (true);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ef3405f79187c465cb84163ec9f94df5
|
||||
timeCreated: 1481898200
|
||||
licenseType: Store
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user