_xiaofang/xiaofang/Assets/yhj/scripts/Solver.cs
2024-12-18 03:03:46 +08:00

33 lines
719 B
C#

using System.Collections;
using System.Collections.Generic;
using System.Net.Mail;
using Obi;
using UnityEngine;
public class Solver : MonoBehaviour
{
// Start is called before the first frame update
public Transform tar;
public Transform tar2;
public GameObject Obi;
private ObiParticleAttachment[] attachment;
void Start()
{
attachment = Obi.GetComponents<ObiParticleAttachment>();
attachment[0].target = tar;
attachment[1].target = tar2;
}
public void INit(Transform tar)
{
tar2.SetParent(tar);
tar2.transform.localPosition = new Vector3(0, 0, 0);
}
// Update is called once per frame
void Update()
{
}
}