Esempio n. 1
0
        // replace invalid parameter with cloned instance.
        void RenewParameter(AnyParameter param)
        {
            int index = _parameters.IndexOf(param);

            _parameters.RemoveAt(index);
            var newParam = param.CloneToParent(this);

            Parameters.Insert(index, newParam);
        }
Esempio n. 2
0
        public void DeleteParameter(AnyParameter param)
        {
            var index = _parameters.IndexOf(param);

            if (index < 0)
            {
                Debug.LogError("DeleteParameter(): param<" + param.Id + "> not found in AnyParameterList.");
                return;
            }
            _parameters.Remove(param);
            GameObject.DestroyImmediate(param);
        }