Esempio n. 1
0
    public void Insp_CreateVisibleOption(int optionIndex, out ChoiceOption option)
    {
        option = new ChoiceOption();
        Vector3 optionPos = nextOptionPos;

        option.CreateOption(optionPrefab, transform, optionPos);
        option.InitButton(this, optionIndex);
        createdOptions [optionIndex] = option;

        nextOptionPos += optionOffset;
    }