33 lines
719 B
C#
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()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
}
|