30-05-2020, Saat: 15:06
Butona tıkladığımda imagi aktif edicek bir kod yazdım ama sahne değiştirdiğimde image tekrar pasif oluyor ben bunu nasıl save edebilirim? kod;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ss : MonoBehaviour
{
public Button ans;
public bool val;
public GameObject ansa;
public void Bos()
{
val = ans;
if (ans)
{
ansa.SetActive(true);
ans.GetComponent<Button>().interactable = false;
}
else
{
}
}
}
bu koddaki imagi nasıl save ederim?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ss : MonoBehaviour
{
public Button ans;
public bool val;
public GameObject ansa;
public void Bos()
{
val = ans;
if (ans)
{
ansa.SetActive(true);
ans.GetComponent<Button>().interactable = false;
}
else
{
}
}
}
bu koddaki imagi nasıl save ederim?