Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     scoretext = GameObject.Find("Score").GetComponent<scoretext>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     totalBalloons = 4;
     timer = 0;
     camera = GameObject.Find("Main Camera");
     player = GameObject.Find("player");
     scorer = GameObject.Find("Score").GetComponent<scoretext>();
     SpawningBalloons = new List<GameObject>();
     NotificationCenter.defaultCenter.addListener(onReceiveNotificationBalloonPop, NotificationType.BalloonPop);
 }
Ejemplo n.º 3
0
    /*
     * public Text scorePt;
     *
     * public Canvas canvasP;
     */
    //親←canvasを入れておく

    private void Awake()
    {
        instance = this;
    }