29 lines
501 B
C#
29 lines
501 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
|
||
|
|
public class ScinsSelect : MonoBehaviour
|
||
|
|
{
|
||
|
|
int SelectedSkin;
|
||
|
|
|
||
|
|
public Text NameSkin;
|
||
|
|
|
||
|
|
private void Start()
|
||
|
|
{
|
||
|
|
NameSkin = GetComponent<Text>();
|
||
|
|
}
|
||
|
|
|
||
|
|
private void SaveS()
|
||
|
|
{
|
||
|
|
PlayerPrefs.SetInt("SelectedSkin", SelectedSkin);
|
||
|
|
}
|
||
|
|
|
||
|
|
public void SelectedSkinC(int i)
|
||
|
|
{
|
||
|
|
SelectedSkin = i;
|
||
|
|
SaveS();
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|