Initial commit
This commit is contained in:
commit
0afdc1d02f
93 changed files with 2453 additions and 0 deletions
9
GoofyAhhCustomComponents/Activator.cs
Normal file
9
GoofyAhhCustomComponents/Activator.cs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace CurrencyChanger2.GoofyAhhCustomComponents
|
||||
{
|
||||
public class Activator : MonoBehaviour
|
||||
{
|
||||
public void OnDisable() => gameObject.SetActive(true);
|
||||
}
|
||||
}
|
||||
28
GoofyAhhCustomComponents/TransformDefiner.cs
Normal file
28
GoofyAhhCustomComponents/TransformDefiner.cs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace CurrencyChanger2.GoofyAhhCustomComponents
|
||||
{
|
||||
public class TransformDefiner : MonoBehaviour
|
||||
{
|
||||
public Vector3 position;
|
||||
public Vector3 localPosition;
|
||||
public Vector3 localScale;
|
||||
public Vector3 eulerAngles;
|
||||
|
||||
public void Update()
|
||||
{
|
||||
transform.position = position;
|
||||
transform.localPosition = localPosition;
|
||||
transform.localScale = localScale;
|
||||
transform.eulerAngles = eulerAngles;
|
||||
}
|
||||
public static void AddToGameObject(GameObject go, Vector3 position, Vector3 localPosition, Vector3 localScale, Vector3 eulerAngles)
|
||||
{
|
||||
var td = go.AddComponent<TransformDefiner>();
|
||||
td.position = position;
|
||||
td.localPosition = localPosition;
|
||||
td.localScale = localScale;
|
||||
td.eulerAngles = eulerAngles;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue