示例#1
0
    public static GameObject CreateSfx(Vector3 iPosition, SfxPrototype iPrototype)
    {
        GameObject obj = (GameObject)GameObject.Instantiate(Active.SfxPrefab, iPosition, Quaternion.identity);
        Sfx        sfx = obj.GetComponent <Sfx>();

        sfx.transform.parent = Active.SfxContainer.transform;

        sfx.Init(iPrototype);


        return(obj);
    }