예제 #1
0
    void Awake()
    {
        _Instance = this;

        bool isOutputError = false;
        int  max           = SpawnArray.Length;

        for (int i = 0; i < max; i++)
        {
            if (SpawnArray[i] == null)
            {
                Debug.LogWarning("SpawnArray was wrong! index = " + i);
                isOutputError = true;
                break;
            }
        }

        max = RemoveArray.Length;
        for (int i = 0; i < max; i++)
        {
            if (RemoveArray[i] == null)
            {
                Debug.LogWarning("RemoveArray was wrong! index = " + i);
                isOutputError = true;
                break;
            }
            XkGameCtrl.AddCartoonTriggerSpawnList(RemoveArray[i]);
        }

        if (isOutputError)
        {
            GameObject obj = null;
            obj.name = "null";
        }
        XkGameCtrl.GetInstance().ChangeBoxColliderSize(transform);
    }