2025-03-10 13:12:05 +08:00
|
|
|
//using CriWare.Assets;
|
2023-08-22 19:08:45 +08:00
|
|
|
using UnityEngine;
|
2025-08-15 16:12:21 +08:00
|
|
|
using UnityEngine.SceneManagement;
|
2023-08-22 19:08:45 +08:00
|
|
|
|
|
|
|
|
namespace Gameplay.FakeFight
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public class CmpFakeFightScene : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public int m_TimeLineId;
|
|
|
|
|
|
|
|
|
|
public int m_SkillId;
|
|
|
|
|
|
2024-09-12 14:08:11 +08:00
|
|
|
public int m_RoleId;
|
|
|
|
|
|
2023-08-22 19:08:45 +08:00
|
|
|
public Vector3 targetPos;
|
|
|
|
|
|
2025-03-10 13:12:05 +08:00
|
|
|
//public CriAtomAcbAsset acbAsset;
|
2024-09-11 19:59:36 +08:00
|
|
|
|
2025-08-15 16:12:21 +08:00
|
|
|
public AudioSource CriSource
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
var audioPlayer = GameObject.Find("AudioPlayer");
|
|
|
|
|
if (audioPlayer)
|
|
|
|
|
{
|
|
|
|
|
var criSource = audioPlayer.GetComponent<AudioSource>();
|
|
|
|
|
if(!criSource)
|
|
|
|
|
criSource = audioPlayer.AddComponent<AudioSource>();
|
|
|
|
|
criSource.playOnAwake = false;
|
|
|
|
|
return criSource;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-09-11 19:59:36 +08:00
|
|
|
private const string Skill_ACB_Path = "Assets/AudioCPK/CueSheet_Sound.acb";
|
2023-08-22 19:08:45 +08:00
|
|
|
|
|
|
|
|
public void ForceInit(int skillId, int timelineId)
|
|
|
|
|
{
|
|
|
|
|
m_TimeLineId = timelineId;
|
|
|
|
|
m_SkillId = skillId;
|
2025-08-15 16:12:21 +08:00
|
|
|
|
2023-08-22 19:08:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|