コード例 #1
0
    void createBalloon()
    {
        Vector3 pos   = this.transform.TransformPoint(-1, 1, 0);
        Vector3 scale = new Vector3(0.7f, 0.7f, 0.7f);
        Color   color = new Color(Random.value, Random.value, Random.value, 1.0f);

        balloonOnMouth = Balloon.Create(pos, scale, color, m_difficulty);
        balloonOnMouth.destroyNormally += destroyNormally;
    }