30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
using DG.Tweening;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Multimeter : MonoBehaviour
|
|
{
|
|
public bool electricity = false;
|
|
public bool activation = false;
|
|
private void OnMouseDown()
|
|
{
|
|
//Debug.Log("ok");
|
|
if (GameManager.ins.BlackWanYon!=null)
|
|
{
|
|
GameManager.ins.BlackWanYon.transform.parent = transform;
|
|
GameManager.ins.BlackWanYon.transform.DOLocalRotate(new Vector3(56, 0, 0), 0.25f);
|
|
GameManager.ins.BlackWanYon.transform.DOScale(new Vector3(200,200,200), 0.25f);
|
|
GameManager.ins.BlackWanYon.transform.DOLocalMove(new Vector3(0,0,-2), 0.25f);
|
|
}
|
|
if (GameManager.ins.RedWanYon != null)
|
|
{
|
|
GameManager.ins.RedWanYon.transform.parent = transform;
|
|
GameManager.ins.RedWanYon.transform.DOLocalRotate(new Vector3(56, 0, 0), 0.25f);
|
|
GameManager.ins.RedWanYon.transform.DOScale(new Vector3(200,200,200), 0.25f);
|
|
GameManager.ins.RedWanYon.transform.DOLocalMove(new Vector3(0,0, -2f), 0.25f);
|
|
}
|
|
Debug.Log("³É¹¦");
|
|
}
|
|
}
|