using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class ModeImageLoad : MonoBehaviour
{
///
/// 是否是演习图片
///
public bool IsDrillPanel;
// Start is called before the first frame update
void Start()
{
if (IsDrillPanel)
{
Texture2D tex = Resources.Load("Common/DrillImage");
GetComponent().sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.one * 0.5f);
}
else
{
Texture2D tex = Resources.Load("Common/ExerciseImage");
GetComponent().sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.one * 0.5f);
}
}
// Update is called once per frame
void Update()
{
}
}