コード例 #1
0
    public void PlayVfxRotatedLookAT(VFX_ID id, Vector3 pos, Vector3 rot2Pos)
    {
        GameObject go = GameObject.Instantiate(_allVfxs[(int)(id)], pos, Quaternion.identity);

        go.transform.LookAt(rot2Pos);
        //GameObject.Instantiate(_allVfxs[(int)(id)], pos, Quaternion.identity);
    }
コード例 #2
0
    public void PlayVfxRotated(VFX_ID id, Vector3 pos, Vector3 eAngles)
    {
        GameObject go = GameObject.Instantiate(_allVfxs[(int)(id)], pos, Quaternion.identity);

        go.transform.eulerAngles = eAngles;
        //GameObject.Instantiate(_allVfxs[(int)(id)], pos, Quaternion.identity);
    }
コード例 #3
0
 public void PlayVfx(VFX_ID id, Vector3 pos)
 {
     GameObject.Instantiate(_allVfxs[(int)(id)], pos, Quaternion.identity);
 }