Racing_Game/Assets/TestScript.cs

33 lines
878 B
C#

using UnityEngine;
public class TestScript : MonoBehaviour
{
void Awake()
{
if (StaticDataMap.SelectedMap == null)
{
//Debug.Log("êàðòà íå óêàçàíà");
}
if (StaticDataMap.Time == null)
{
//Debug.Log("Âðåìÿ íå óêàçàíî");
}
if (StaticDataMap.NumPlayer == null)
{
//Debug.Log("Èãðîêè íå óêàçàíû");
StaticDataMap.NumPlayer = 2;
//Debug.Log(StaticDataMap.NumPlayer);
}
if (StaticDataMap.CarPlayers[0] == null)
{
StaticDataMap.CarPlayers[0] = "Chellendger_1969_2";
//Debug.Log("Ìàøèíà îòñëåæèâàåòñÿ");
}
if (StaticDataMap.CarPlayers[1] == null)
{
StaticDataMap.CarPlayers[1] = "Chellendger_1969_2";
//Debug.Log("Âòîðîé èãðîê íå óêàçàí");
}
}
}