예제 #1
0
    /// <summary> 播放特效 </summary>
    public void playEffect(string effectPath, Vector2 pos)
    {
        GameObject effect  = UILoader.LoadUIEffect(effectPath);
        Transform  UILayer = UILayer_middle;

        effect.transform.SetParent(UILayer);
        effect.transform.localScale    = Vector3.one;
        effect.transform.localPosition = new Vector3(pos.x, pos.y, 0);
    }