22 lines
527 B
C#
22 lines
527 B
C#
using Obvious.Soap;
|
|
using UnityEngine;
|
|
|
|
public class LineSolverInitializer : MonoBehaviour
|
|
{
|
|
[SerializeField]
|
|
private GameObject solverObj;
|
|
|
|
[SerializeField]
|
|
private Transform fromPositionInitializer;
|
|
|
|
[SerializeField]
|
|
private ScriptableEventGameObject onCurrentLureInitialized;
|
|
|
|
private void Start()
|
|
{
|
|
solverObj.transform.position = fromPositionInitializer.position;
|
|
solverObj.SetActive(value: true);
|
|
onCurrentLureInitialized.Raise(solverObj.GetComponentInChildren<Lure>(includeInactive: true).gameObject);
|
|
}
|
|
}
|