This commit is contained in:
Dvurechensky 2025-05-12 05:50:37 +03:00
parent 0d1f5ae0d7
commit caa884e587
11 changed files with 85 additions and 3 deletions

2
.gitignore vendored

@ -1,3 +1,5 @@
pre_commit.ps1
pre_commit.log
Tower Build Game/.vs Tower Build Game/.vs
Tower Build Game/.vsconfig Tower Build Game/.vsconfig
Tower Build Game/obj Tower Build Game/obj

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
using UnityEngine.Advertisements; using UnityEngine.Advertisements;
using System.Collections; using System.Collections;

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
public class CameraShake : MonoBehaviour public class CameraShake : MonoBehaviour
@ -16,7 +24,7 @@ public class CameraShake : MonoBehaviour
{ {
if(shakeDuration > 0) if(shakeDuration > 0)
{ {
//Случайное значение внутри сферы с радиусом 1 //Случайное значение внутри сферы с радиусом 1
camTransform.localPosition = originPosition + Random.insideUnitSphere * shakeAmount; camTransform.localPosition = originPosition + Random.insideUnitSphere * shakeAmount;
shakeDuration -= Time.deltaTime * decreaseFactor; shakeDuration -= Time.deltaTime * decreaseFactor;
} }

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
using UnityEngine.UI; using UnityEngine.UI;
using UnityEngine.SceneManagement; using UnityEngine.SceneManagement;

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
public class ExplodeCubes : MonoBehaviour public class ExplodeCubes : MonoBehaviour

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using System; using System;
using System.Linq; using System.Linq;
using System.Collections; using System.Collections;

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
public class RotateCamera : MonoBehaviour public class RotateCamera : MonoBehaviour

@ -1,4 +1,12 @@
using UnityEditor; /*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEditor;
using UnityEngine; using UnityEngine;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
using UnityEditor; using UnityEditor;

@ -1,9 +1,17 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using System; using System;
namespace CustomAttributes namespace CustomAttributes
{ {
/// <summary> /// <summary>
/// Нажатие на кнопку в редакторе /// Нажатие на кнопку в редакторе
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Method)] [AttributeUsage(AttributeTargets.Method)]
public class EditorButtonAttribute : Attribute public class EditorButtonAttribute : Attribute

@ -1,3 +1,11 @@
/*
* Author: Nikolay Dvurechensky
* Site: https://www.dvurechensky.pro/
* Gmail: dvurechenskysoft@gmail.com
* Last Updated: 12 мая 2025 05:48:46
* Version: 1.0.4
*/
using UnityEngine; using UnityEngine;
public class isEnabled : MonoBehaviour public class isEnabled : MonoBehaviour