コード例 #1
0
    void SpawnMinion(double pX, double pZ)
    {
        GameObject       minion     = Instantiate(prefabMinion, new Vector3((float)pX, 0.0f, (float)pZ), Quaternion.identity) as GameObject;
        MinionController controller = minion.GetComponent <MinionController>();

        controller.Init(this.DeregisterMinion);
    }