Hi,
I have a Steam unlock achievement custom action script that works perfectly, I found this one online that is specific for AC, and wondered if you could turn it into a custom action script also so I don't have to haver it as a game object in every scene? My coding skills not the best so I am unable. thanks Chris!
This is the script:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using UnityEngine.InputSystem;
using Epic.OnlineServices;
using Epic.OnlineServices.Achievements;
using Epic.OnlineServices.Ecom;
using Epic.OnlineServices.UI;
using Epic.OnlineServices.Stats;
using PlayEveryWare.EpicOnlineServices;
using PlayEveryWare.EpicOnlineServices.Samples;
public class EOSUnlockAchievement : MonoBehaviour
{
private EOSAchievementManager achievementManager;
public string achievementID;
private void Awake()
{
var achievementManager = EOSManager.Instance.GetOrCreateManager<EOSAchievementManager>();
}
public void UnlockAchievement(string achievementID)
{
achievementManager = EOSManager.Instance.GetOrCreateManager<EOSAchievementManager>();
achievementManager.UnlockAchievementManually(achievementID);
Debug.Log("achievement unlocked");
}
}
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments