_xiaofang/xiaofang/Assets/yhj/scripts/Solveradd.cs
2024-12-18 01:28:15 +08:00

34 lines
728 B
C#

using System.Collections;
using System.Collections.Generic;
using Obi;
using UnityEngine;
public class Solveradd : MonoBehaviour
{
// Start is called before the first frame update
public GameObject solver;
public ObiParticleAttachment attachment;
public ObiParticleAttachment attachment1;
void Start()
{
attachment= solver.GetComponents<ObiParticleAttachment>()[0];
attachment1 = solver.GetComponents<ObiParticleAttachment>()[1];
}
public void Add(Transform tar)
{
attachment.target=tar;
}
public void Add1(Transform tar)
{
attachment1.target = tar;
}
// Update is called once per frame
void Update()
{
}
}