mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 02:35:38 +03:00
28 lines
789 B
C#
28 lines
789 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class HoldPanelsRedactor : MonoBehaviour
|
|
{
|
|
public void HoldPanelLeft()
|
|
{
|
|
GameObject.Find("Panel1 Hidden Elements").transform.localPosition = new
|
|
Vector3(-1000f, 0, 0);
|
|
}
|
|
public void UnHoldPanelLeft()
|
|
{
|
|
GameObject.Find("Panel1 Hidden Elements").transform.localPosition = new
|
|
Vector3(0, 0, 0);
|
|
}
|
|
public void HoldPanelRight()
|
|
{
|
|
GameObject.Find("Panel2 Hidden Elements").transform.localPosition = new
|
|
Vector3(1000f, -13.99999f, 0);
|
|
}
|
|
public void UnHoldPanelRight()
|
|
{
|
|
GameObject.Find("Panel2 Hidden Elements").transform.localPosition = new
|
|
Vector3(-4.999922f, -13.99999f, 0);
|
|
}
|
|
}
|