浏览代码

Removed induced behaviour that resetted the folder position to zero (not needed anymore as the transform is exposed)

/main
Thomas ICHÉ 5 年前
当前提交
6df9bca6
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 4
      Runtime/Ingredients/Folder.cs

4
Runtime/Ingredients/Folder.cs


private void Reset()
{
gameObject.isStatic = true;
transform.localPosition = Vector3.zero;
transform.localRotation = Quaternion.identity;
transform.localScale = Vector3.one;
if(Application.isPlaying)
{
Destroy(this);

正在加载...
取消
保存