holopy3/Assets/PlattarExporter/Plattar/Alignment/AlignmentScript.cs

25 lines
517 B
C#
Raw Permalink Normal View History

2021-01-28 12:07:52 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Plattar {
#if UNITY_EDITOR
[ExecuteInEditMode]
public class AlignmentScript : MonoBehaviour {
void Awake() {
gameObject.SetActive(true);
}
void Update() {
gameObject.transform.position = new Vector3(0, 0, -4.15f);
gameObject.transform.localEulerAngles = new Vector3(0, 180.0f, 0);
}
}
#else
public class AlignmentScript : MonoBehaviour {
void Awake() {
gameObject.SetActive(false);
}
}
#endif
}