Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        // 漁船関係をまとめたオブジェクトを作成
        GameObject  obj           = new GameObject("BoatManager");
        BoatManager bmAddComponet = obj.AddComponent <BoatManager> ();

        boatManager = bmAddComponet;
        boatManager.Init(
            createMinX,
            createMaxX,
            createMinY,
            createMaxY,
            japBoats
            );

        // 漁船のコピー元Objをdeactive
        for (int i = 0; i < japBoats.Length; i++)
        {
            japBoats[i].SetActive(false);
        }

        // ゲームオーバー用にイルカの生存フラグをみる
        GameObject dolpObj = GameObject.FindWithTag("Player");

        dolphinCtrl = dolpObj.GetComponent <DolphinController>();

        IsGameOver   = false;
        HasPushRetry = false;
    }