holopy3/Assets/PlattarExporter/Plattar/Alignment/AlignmentScript.cs
Lena Biresch 490ef558ef CleanUp
2021-01-28 13:07:52 +01:00

25 lines
No EOL
517 B
C#

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
}