资源简介

UNITY3D 吃豆人 源码下载,支持unity3d 5.3以上,

资源截图

代码片段和文件信息

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class AudioText : MonoBehaviour {
    public Slider m_audioSlider;
    public Text m_text;
// Use this for initialization
void Start () {
        m_text = GetComponent();
        if (PlayerPrefs.HasKey(“AudioSize“))
        {
            m_audioSlider.value = PlayerPrefs.GetInt(“AudioSize“) / 100f;
        }
        else
        {
            m_audioSlider.value = 1;
        }
        m_text.text = ((int)(m_audioSlider.value * 100)).ToString();
        
}

// Update is called once per frame
void Update () {

}

    public void ShowAudioSize()
    {
        int audioSize = ((int)(m_audioSlider.value * 100));
        m_text.text = audioSize.ToString();
        PlayerPrefs.SetInt(“AudioSize“ audioSize);
        BackgrounMusic.m_audioSize = audioSize;
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-02-17 10:41  Pacman-master\
     文件          29  2018-02-17 10:41  Pacman-master\.gitignore
     文件       11449  2018-02-17 10:41  Pacman-master\Assembly-CSharp-Editor.csproj
     文件        7978  2018-02-17 10:41  Pacman-master\Assembly-CSharp.csproj
     目录           0  2018-02-17 10:41  Pacman-master\Assets\
     文件     2101619  2018-02-17 10:41  Pacman-master\Assets\01.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\01.unity.meta
     文件     2108523  2018-02-17 10:41  Pacman-master\Assets\02.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\02.unity.meta
     文件     2108523  2018-02-17 10:41  Pacman-master\Assets\03.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\03.unity.meta
     文件     2114754  2018-02-17 10:41  Pacman-master\Assets\04.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\04.unity.meta
     文件     2114754  2018-02-17 10:41  Pacman-master\Assets\05.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\05.unity.meta
     文件     2120975  2018-02-17 10:41  Pacman-master\Assets\06.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\06.unity.meta
     文件     2120971  2018-02-17 10:41  Pacman-master\Assets\07.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\07.unity.meta
     文件     2120975  2018-02-17 10:41  Pacman-master\Assets\08.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\08.unity.meta
     文件     2120975  2018-02-17 10:41  Pacman-master\Assets\09.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\09.unity.meta
     文件     2127695  2018-02-17 10:41  Pacman-master\Assets\10.unity
     文件         197  2018-02-17 10:41  Pacman-master\Assets\10.unity.meta
     文件         214  2018-02-17 10:41  Pacman-master\Assets\Animation.meta
     目录           0  2018-02-17 10:41  Pacman-master\Assets\Animation\
     文件        6926  2018-02-17 10:41  Pacman-master\Assets\Animation\Bliky_0.controller
     文件         230  2018-02-17 10:41  Pacman-master\Assets\Animation\Bliky_0.controller.meta
     文件        1918  2018-02-17 10:41  Pacman-master\Assets\Animation\Bliky_load.controller
     文件         230  2018-02-17 10:41  Pacman-master\Assets\Animation\Bliky_load.controller.meta
............此处省略3885个文件信息

评论

共有 条评论