This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Score : Global { | |
GUIStyle labelStyle; | |
// Update is called once per frame | |
void Update () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Generation : MonoBehaviour { | |
public GameObject Prefab1; | |
public GameObject Prefab2; | |
public GameObject Prefab3; | |
public GameObject Prefab4; | |
public GameObject Prefab5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Drag : MonoBehaviour { | |
private Vector3 screenPoint; | |
private Vector3 offset; | |
// Use this for initialization | |
void Start () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnCollisionEnter2D(Collision2D col) | |
{ | |
if (col.gameObject.tag == "tag1") { | |
Destroy(col.gameObject); | |
score += 10; | |
Debug.Log(score); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Global : MonoBehaviour { | |
public static int score = 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Crash1 : Global { | |
// Use this for initialization | |
void Start () { | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class EnemyTracking : MonoBehaviour { | |
public Vector2 speed = new Vector2(0.05f,0.05f); | |
public GameObject targetobject; | |
private float rad; | |
private Vector2 Position; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Switch : MonoBehaviour { | |
public AudioClip audioClip1; | |
// Use this for initialization | |
void Start () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Switch : MonoBehaviour { | |
public AudioClip audioClip1; | |
// Use this for initialization | |
void Start () { | |
//audioSource = GetComponent<AudioSource> (); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class Switch : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
} | |
NewerOlder