EffectPrefab.Create C# (CSharp) Метод

Create() публичный Метод

public Create ( Combatant, c ) : void
c Combatant,
Результат void
    public void Create(Combatant c)
    {
        if(this.prefabInstance == null && "" != this.prefabName &&
            c.prefabInstance != null)
        {
            GameObject tmp = (GameObject)Resources.Load(this.prefabPath+this.prefabName, typeof(GameObject));
            if(tmp)
            {
                this.prefabInstance = (GameObject)GameObject.Instantiate(tmp);
            }
            TransformHelper.Mount(TransformHelper.GetChild(this.childName, c.prefabInstance.transform), this.prefabInstance.transform,
                    true, this.localSpace, this.offset, this.targetRotation, this.rotationOffset);
        }
    }