Question by
EdwardBlue · Jun 23, 2017 at 09:38 AM ·
codepage
Activate 2 gameobjects separate if there is Enemy tag C#
I have 2 gameobjects PortalA and PortalB , that if there is no playerTag " Robot " within 100, then Active portalA and disactive portal B. In c# code i don't know how to resolve it.
I've try with :
public float distance = 100; public GameObject PortalZone = null; public GameObject PortalA = null; public GameObject PortalB = null;
...
void OnDrawGizmos() { Gizmos.color = Color.blue; Gizmos.DrawWireSphere(transform.position, distance); }
BUT I don't know how to put the code in the middle! Thanks
Comment
Your answer
Follow this Question
Related Questions
Update and Get PlayerPrefs during runtime? 0 Answers
Reversing the process 0 Answers
My Raycast won't work at all ?? (C# Windows) 1 Answer
how do i fix this error? 0 Answers