Example #1
0
 // Use this for initialization
 void Start()
 {
     scoretext = GameObject.Find("Score").GetComponent<scoretext>();
 }
 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);
 }
Example #3
0
    /*
     * public Text scorePt;
     *
     * public Canvas canvasP;
     */
    //親←canvasを入れておく

    private void Awake()
    {
        instance = this;
    }