This commit is contained in:
JA
2026-06-27 03:37:32 +08:00
parent 3059e71422
commit 7969e2e35d
368 changed files with 20297 additions and 58206 deletions

View File

@@ -1,48 +0,0 @@
using Manager;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Teleport : MonoBehaviour
{
public BossAI m;
public bool isBattle;
private void Awake()
{
if(isBattle)
{
m = GameObject.FindWithTag("Boss").GetComponentInChildren<BossAI>();
}
}
private void OnTriggerEnter2D(Collider2D collision)
{
if(isBattle)
{
if (m.GetIsDie() && collision.CompareTag("Player"))
{
Debug.Log("传送");
//保存玩家信息
CharacterCombat cm = collision.gameObject.GetComponentInChildren<CharacterCombat>();
PlayerInfo.Instance.KeepData(cm.maxHp, cm.currentHp, cm.attack);
UIManager.Instance.Show<UILoad>();
return;
}
}
else
{
if (collision.CompareTag("Player"))
{
Debug.Log("传送");
//保存玩家信息
CharacterCombat cm = collision.gameObject.GetComponentInChildren<CharacterCombat>();
PlayerInfo.Instance.KeepData(cm.maxHp,cm.currentHp,cm.attack);
UIManager.Instance.Show<UILoad>();
return;
}
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 7bba0cc35dabde64da5b08e8c99eefc5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,64 +0,0 @@
using Manager;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SystemConfig : MonoBehaviour
{
//¿ª¹Ø
public static bool MusicOn
{
get
{
return PlayerPrefs.GetInt("Music", 1) == 1;
}
set
{
PlayerPrefs.SetInt("Music", value ? 1 : 0);
SoundManager.Instance.MusicOn = value;
}
}
public static bool SoundOn
{
get
{
return PlayerPrefs.GetInt("Sound", 1) == 1;
}
set
{
PlayerPrefs.SetInt("Sound", value ? 1 : 0);
SoundManager.Instance.SoundOn = value;
}
}
//´óС
public static int MusicVolume
{
get
{
return PlayerPrefs.GetInt("MusicVolume", 100);
}
set
{
PlayerPrefs.SetInt("MusicVolume", value);
SoundManager.Instance.MusicVolume = value;
}
}
public static int SoundVolume
{
get
{
return PlayerPrefs.GetInt("SoundVolume", 100);
}
set
{
PlayerPrefs.SetInt("SoundVolume", value);
SoundManager.Instance.SoundVolume = value;
}
}
~SystemConfig()
{
PlayerPrefs.Save();
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: ee97715ada4062f4d85b5b96d8cb30fc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: