blob: 1338067d3467b0f273c430d4a494e726f6a4a027 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CentreTest : MonoBehaviour
{
public Transform Trans_Saionji_Left;
public Transform Trans_Saionji_Right;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
transform.position = (Trans_Saionji_Left.position + Trans_Saionji_Right.position ) / 2;
}
}
|