39 lines
1.0 KiB
C#
39 lines
1.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class MapData : MonoBehaviour
|
|
{
|
|
public Material material_skybox;
|
|
[SerializeField] public List<MapZoneData> m_MapZoneData;
|
|
|
|
void Start()
|
|
{
|
|
RenderSettings.skybox = material_skybox;
|
|
RenderSettings.ambientMode = UnityEngine.Rendering.AmbientMode.Trilight;
|
|
RenderSettings.ambientSkyColor = Color.gray;
|
|
RenderSettings.ambientEquatorColor = new Color32(180, 148, 123, 255);
|
|
RenderSettings.ambientGroundColor = new Color32(79, 79, 115, 255);
|
|
RenderSettings.fog = false;
|
|
RenderSettings.reflectionIntensity = 0f;
|
|
}
|
|
|
|
public MapZoneData Get_MapZoneData(int index) { return m_MapZoneData[index]; }
|
|
}
|
|
|
|
[Serializable]
|
|
public class MapZoneData
|
|
{
|
|
public GameObject go_portal;
|
|
public GameObject go_reincarnation;
|
|
public Transform tf_Farmer;
|
|
public Transform[] tf_Obj;
|
|
}
|
|
|
|
public class ChoiceMapData
|
|
{
|
|
public int n_Difficult;
|
|
public int n_MapID;
|
|
public int n_PortalIndex;
|
|
} |