Advertisement
Guest User

Untitled

a guest
Jun 11th, 2016
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class Menu : MonoBehaviour {
  5.  
  6.     public Snake SnakeObj;
  7.    
  8.     // Use this for initialization
  9.     void Start () {
  10.    
  11.     }
  12.  
  13.   public GameObject CanvasR;
  14.  
  15.    
  16.    
  17.  
  18.     public void MenuClick()
  19.     {
  20.         SnakeObj.StartGame();
  21.         Destroy(CanvasR);
  22.     }
  23.    
  24.     // Update is called once per frame
  25.     void Update () {
  26.    
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement