コード例 #1
0
    /// <summary>
    /// Use this for initialization
    /// </summary>
    void Start()
    {
        // initialize score text
        scoreText      = GameObject.FindGameObjectWithTag("ScoreText").GetComponent <Text>();
        scoreText.text = ScorePrefix + score;
        //Fish game obj
        //  GameObject.FindGameObjectWithTag("Fish");
        Fish fish = GameObject.FindGameObjectWithTag("Fish").GetComponent <Fish>();

        fish.AddPointAddedListener(onPointAdded);
    }