init commit to movement branch
This commit is contained in:
parent
964a83343f
commit
b2501927a8
3 changed files with 29 additions and 1 deletions
16
Game 1/Assets/Scripts/Explosion.cs
Normal file
16
Game 1/Assets/Scripts/Explosion.cs
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class Explosion : MonoBehaviour {
|
||||||
|
|
||||||
|
// Use this for initialization
|
||||||
|
void Start () {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update () {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
12
Game 1/Assets/Scripts/Explosion.cs.meta
Normal file
12
Game 1/Assets/Scripts/Explosion.cs.meta
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 93cb9d08b2b4f164d95fa992385774e9
|
||||||
|
timeCreated: 1504641875
|
||||||
|
licenseType: Free
|
||||||
|
MonoImporter:
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -25,7 +25,7 @@ public class PlayerController : MonoBehaviour {
|
||||||
|
|
||||||
if (Input.GetMouseButtonDown(0))
|
if (Input.GetMouseButtonDown(0))
|
||||||
{
|
{
|
||||||
explode.Play();
|
//explode.Play;
|
||||||
Debug.Log("Explosion at: " + Input.mousePosition);
|
Debug.Log("Explosion at: " + Input.mousePosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue