Skip to content

Instantly share code, notes, and snippets.

View NovaSurfer's full-sized avatar
🦛

Max NovaSurfer

🦛
  • Globant
  • Kraków, Poland
  • 22:57 (UTC +01:00)
View GitHub Profile
@NovaSurfer
NovaSurfer / FadeInOut.cs
Last active February 5, 2022 15:59
Unity3D screen fading script (using new UI)
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using UnityEngine.SceneManagement;
public class ScreenFader : MonoBehaviour
{
public Image FadeImg;
public float fadeSpeed = 1.5f;
public bool sceneStarting = true;
@NovaSurfer
NovaSurfer / MailSender.cs
Last active February 21, 2024 13:44
unity3d Email script
/*
For more details, please follow the links below:
https://msdn.microsoft.com/en-us/library/System.Net.Mail.MailMessage(v=vs.110).aspx
https://msdn.microsoft.com/en-us/library/system.net.mail.smtpclient(v=vs.110).aspx
*/
using UnityEngine;
using System;
using System.Collections;
using System.Net;
@NovaSurfer
NovaSurfer / SceneRestart.cs
Last active March 25, 2018 02:50
Restart current scene in Unity 5.0 using new SceneManager
/*
For more details, please follow the link below:
https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.html
*/
using UnityEngine;
using UnityEngine.SceneManagement;
using System.Collections;
public class SceneRestart : MonoBehaviour {
@NovaSurfer
NovaSurfer / BoundsCollider.cs
Last active November 5, 2016 18:52
Unity3d detecting collision without physics
/*
Tutorial (russian):
http://nodejso-tribar.rhcloud.com/collison-without-physics/
*/
using UnityEngine;
using System.Collections;
public class BoundsCollider : DrawBoxCollider {
@NovaSurfer
NovaSurfer / Unity gitignore
Last active August 28, 2018 14:26
Unity + VS17 + Rider .gitignore
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
.idea/
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
@NovaSurfer
NovaSurfer / .clang-format
Last active July 3, 2019 20:52
My C++ clang-format file
# Common settings
BasedOnStyle: WebKit
TabWidth: 4
IndentWidth: 4
UseTab: Never
ColumnLimit: 100
---
Language: Cpp