private void OnTeleportButtonPress(TeleportInfo info) { if (aiPlayer.OnCoolDown(NetworkSide.Client)) { return; } aiPlayer.StartCoolDown(NetworkSide.Client); if (info.gameObject.GetComponent <PlayerScript>() != null || info.gameObject.GetComponent <MobAI>() != null) { aiPlayer.CmdTrackObject(info.gameObject); return; } aiPlayer.CmdTeleportToCamera(info.gameObject, true); }