// 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); }
/* * public Text scorePt; * * public Canvas canvasP; */ //親←canvasを入れておく private void Awake() { instance = this; }