02-11-2017, 10:57 PM
Sorry, but i need to ask you again
When i want to grab the End Prefab, my handle will be created on the Start Prefab and im carrying it not the End Prefab.
But when i grab the Start Prefab, its okay.
When i want to grab the End Prefab, my handle will be created on the Start Prefab and im carrying it not the End Prefab.
But when i grab the Start Prefab, its okay.
Code:
public override void OnInteract(NetworkIdentity _player, bool _release)
{
base.OnInteract(_player, _release);
m_handleGO = new GameObject("Obi Handle");
m_handle = m_handleGO.AddComponent<ObiParticleHandle>();
m_handle.Actor = m_rope;
Debug.Log("Interact with: " + gameObject.name);
m_handleGO.transform.position = transform.position;
m_handle.AddParticle(0, transform.position, 1f);
}
}