Ejemplo n.º 1
0
 void DrawDetectionScene()
 {
     EditoolsHandle.SetColor(Color.magenta);
     EditoolsHandle.DrawWireDisc(eTarget.LastPos, Vector3.up, eTarget.Radius);
     EditoolsHandle.SetColor(Color.green);
     EditoolsHandle.DrawWireCube(eTarget.TargetPos + Vector3.up, Vector3.one * 0.5f);
     EditoolsHandle.DrawDottedLine(eTarget.TargetPos, eTarget.TargetPos + Vector3.up * 2, 1);
     EditoolsHandle.DrawDottedLine(eTarget.TargetPos, eTarget.transform.position, 1);
     EditoolsHandle.SetColor(Color.yellow);
     EditoolsHandle.DrawWireCube(eTarget.SearchPos + Vector3.up * 2, Vector3.one * 0.5f);
     EditoolsHandle.DrawDottedLine(eTarget.SearchPos, eTarget.SearchPos + Vector3.up * 2, 1);
     EditoolsHandle.DrawDottedLine(eTarget.SearchPos, eTarget.transform.position, 1);
 }
Ejemplo n.º 2
0
    void DrawSpawnPointScene()
    {
        for (int i = 0; i < eTarget.SpawnPoints.Count; i++)
        {
            SM_SpawnPoint _point = eTarget.SpawnPoints[i];

            EditoolsHandle.SetColor(Color.green);
            EditoolsHandle.DrawWireCube(_point.Position, _point.Size);
            EditoolsHandle.SetColor(Color.white);

            EditoolsHandle.PositionHandle(ref _point.Position, Quaternion.identity);
            EditoolsHandle.ScaleHandle(ref _point.Size, _point.Position, Quaternion.identity, 2);
            EditoolsLayout.Space();

            GetModeScene(_point);
        }
    }