summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/CentreTest.cs
blob: b921cc59ca7b091c75c20459c432dd590f438e11 (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;
    }
}