// Use this for initialization void Start() { { /* * //Arrange Test * foreach (List<Vector3> tempList in ppcArrange.Instance.Arrange) * { * foreach (Vector3 tempV in tempList) * { * if (tempV[0] == 1) * { * ppcInstantiate(lv1ppcR, new Vector3(tempV[1], tempV[2], -10)); * } * else * { * ppcInstantiate(lv1ppcB, new Vector3(tempV[1], tempV[2], -10)); * } * } * } * * //GetMore Test * Vector3 tmpPosition; * tmpPosition = new Vector3(0, 20, -10); * ppcInstantiate(getMorePPC, tmpPosition); */ } _instance = this; Debug.Log("Start!"); setCurrentGameMode(gameMode.normal); spawnPPCArrange(); //SpawnPPC(); }
static public ppcManager getInstance() { if (!_instance) { _instance = new ppcManager(); } return(_instance); }