This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
|-------------------------------------------------------------------------- | |
| Execution Time Measurement | |
|-------------------------------------------------------------------------- | |
| | |
| Requires PHP 8 | |
| | |
| This is a simple execution time measurement class for blocks of code and callables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Based on Unity Tutorials, a bit modified */ | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class ObjectPooler : MonoBehaviour { | |
[Header("DRAG OBJECT PREFAB HERE")] | |
/// <summary> | |
/// Main object, that will be pooled. | |
/// </summary> | |
[Tooltip("Main object, that will be pooled.")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
JavaScript function to check whether if user clicked a specific region | |
on given element | |
Example <div> | |
<style> | |
#example { | |
width:500px; | |
height:500px; |
NewerOlder