unity3d editor script for executing functions while the project is running