This file contains hidden or 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
{ | |
"firebase": { | |
"source": [ | |
"10.4.0", | |
"10.3.0", | |
"10.2.0", | |
"10.1.1", | |
"10.1.0", | |
"10.0.0", | |
"9.6.0", |
This file contains hidden or 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
// Made with Amplify Shader Editor | |
Shader "Skybox Gradient" | |
{ | |
Properties | |
{ | |
_Top("Top", Color) = (1,1,1,0) | |
_Bottom("Bottom", Color) = (0,0,0,0) | |
_mult("mult", Float) = 1 | |
_pwer("pwer", Float) = 1 | |
[Toggle(_SCREENSPACE_ON)] _Screenspace("Screen space", Float) = 0 |
This file contains hidden or 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
using System; | |
using UnityEngine; | |
/// <summary> | |
/// observer : đạt thành tựu thu thập đủ 10000 coin | |
/// </summary> | |
public class CoinArchivementObserver : MonoBehaviour | |
{ | |
private void Awake() | |
{ |
This file contains hidden or 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
using UnityEngine; | |
public class BlinkSample1 : MonoBehaviour | |
{ | |
[SerializeField] private Renderer target; | |
[SerializeField] private float cycle = 1; | |
private float _time; | |
private void Update() |
This file contains hidden or 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 AudioManager: Singleton<AudioManager> | |
{ | |
// ... | |
} |
This file contains hidden or 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
#Delete all local tags. | |
git tag -d $(git tag -l) | |
#Fetch remote tags. | |
git fetch | |
#Delete all remote tags. | |
git push origin --delete $(git tag -l) | |
#Delete all local tags. | |
git tag -d $(git tag -l) |
This file contains hidden or 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace DesignPatterns.DIP | |
{ | |
public class Door : MonoBehaviour, ISwitchable | |
{ | |
private bool isActive; | |
public bool IsActive => isActive; |
This file contains hidden or 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace DesignPatterns.ISP | |
{ | |
// Using Interface Segregation, we only implement what interfaces apply. | |
public class EnemyUnit : MonoBehaviour, IDamageable, IMovable, IUnitStats | |
{ |
This file contains hidden or 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace DesignPatterns.LSP | |
{ | |
public class Car : RoadVehicle{} | |
} |
This file contains hidden or 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
using UnityEngine; | |
namespace DesignPatterns.OCP | |
{ | |
public class AreaCalculator | |
{ | |
// new implementation: use open-closed principle | |
// let each Shape contain the logic for calculating the area | |
public float GetArea(Shape shape) |