12345678910111213141516171819202122232425262728293031323334 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using System.Runtime.InteropServices;
- public class doSomething : MonoBehaviour
- {
- bool active;
- public GameObject gameObjectA;
- // Start is called before the first frame update
- void Start()
- {
- }
- // Update is called once per frame
- void Update()
- {
- }
- public void forwardTow()
- {
- //GameObject gameObject = GameObject.Find("GameObject");
- gameObjectA.transform.position = new Vector3(gameObjectA.transform.position.x, gameObjectA.transform.position.y, gameObjectA.transform.position.z - 1);
- }
- public void openCamera()
- {
- gameObjectA.GetComponent<CameraTest>().ToOpenCamera();
- }
- }
|