mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 01:12:05 +07:00
61 lines
1.2 KiB
C#
61 lines
1.2 KiB
C#
using UnityEngine;
|
|
using IsoTools.Internal;
|
|
using System.Collections.Generic;
|
|
|
|
#if UNITY_EDITOR
|
|
using UnityEditor;
|
|
#endif
|
|
|
|
namespace IsoTools.Tiled {
|
|
[ExecuteInEditMode, DisallowMultipleComponent]
|
|
[RequireComponent(typeof(IsoObject))]
|
|
public class TiledMap : MonoBehaviour {
|
|
|
|
public TiledMapAsset Asset = null;
|
|
public TiledMapProperties Properties = null;
|
|
|
|
// ---------------------------------------------------------------------
|
|
//
|
|
// Functions
|
|
//
|
|
// ---------------------------------------------------------------------
|
|
|
|
|
|
// ---------------------------------------------------------------------
|
|
//
|
|
// Messages
|
|
//
|
|
// ---------------------------------------------------------------------
|
|
|
|
void Awake() {
|
|
}
|
|
|
|
void OnEnable() {
|
|
}
|
|
|
|
void OnDisable() {
|
|
}
|
|
|
|
#if UNITY_EDITOR
|
|
void Reset() {
|
|
}
|
|
|
|
void OnValidate() {
|
|
}
|
|
|
|
void OnDrawGizmos() {
|
|
var iso_object = GetComponent<IsoObject>();
|
|
if ( iso_object.isShowBounds && iso_object.isoWorld ) {
|
|
IsoUtils.DrawGrid(
|
|
iso_object.isoWorld,
|
|
iso_object.position, iso_object.size,
|
|
IsoUtils.ColorChangeA(Color.green, 0.5f));
|
|
}
|
|
}
|
|
|
|
void Update() {
|
|
}
|
|
#endif
|
|
}
|
|
} // namespace IsoTools.Tiled
|