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
Shader "Custom/ImageClippingCG" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_ClipValue("Clip value", Range(0.0, 1.0)) = 0.0 | |
} | |
SubShader | |
{ | |
// No culling or depth |
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
Shader "Custom/ImageInfiniteScrollingCG" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
// No culling or depth | |
Cull Off ZWrite Off ZTest Always |
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
Shader "Custom/TransitionCG" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
_SecondTex("Second texture", 2D) = "white" {} | |
_OpacityLevel("Opacity level", Range(0.0, 1.0)) = 0.0 | |
} | |
SubShader | |
{ |
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
public class LevelGating : MonoBehaviour | |
{ | |
public void Initialize() | |
{ | |
PlayerEvents.PlayerLevelUp += OnPlayerLevelUp; | |
} | |
private void OnPlayerLevelUp(int level) | |
{ | |
// Example usage |
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
public class PlayerEvents | |
{ | |
public delegate void PlayerLevelUpCallback(int level); | |
public static event PlayerLevelUpCallback PlayerLevelUp; | |
} |
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
public class Player : MonoBehaviour | |
{ | |
private int _currentLevel; | |
public void LevelUp() | |
{ | |
_currentLevel++; | |
PlayerLevelUp(_currentLevel); | |
} | |
} |
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
set nocompatible " be iMproved, required | |
filetype off " required | |
set nocompatible | |
set nobackup | |
set ruler | |
set encoding=utf-8 | |
set guifont=iosevka:h14 | |
syntax enable |
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
BasedOnStyle: LLVM | |
IndentWidth: 4 | |
BreakBeforeBraces: Allman | |
BinPackArguments: false | |
AlignConsecutiveAssignments: true | |
AlignConsecutiveDeclarations: true | |
SpaceBeforeParens: Always | |
SpacesInParentheses: true | |
SpacesInAngles: true | |
ColumnLimit: 80 |