123456789101112131415161718192021222324 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class MachineObj : MonoBehaviour
- {
- public Transform door;
- public Transform navigatorPoint;
- public MachineParameters deviceParameters;
- public bool isSingle;
- public void Setting(bool isSingle)
- {
- this.isSingle = isSingle;
-
- door.transform.localPosition = isSingle ? new Vector3(0, 0, 0.6f) : new Vector3(0, 0, -0.6f);
- navigatorPoint.transform.localPosition = isSingle ? new Vector3(0, 0, 1f) : new Vector3(0, 0, -1f);
- door.gameObject.SetActive(false);
- navigatorPoint.gameObject.SetActive(false);
- }
- }
|