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
#if UNITY_EDITOR | |
using System; | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections.Generic; | |
using UnityEditor.Build.Reporting; | |
using System.IO; | |
namespace JENKINS | |
{ |
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 int timeSlicing = 2; | |
public void Update() | |
{ | |
if (Time.frameCount % timeSlicing == 0) | |
{ | |
// TODO | |
} | |
} |
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
using System; | |
using System.IO; | |
using System.Linq; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
public class FooConfig : ScriptableObject | |
{ |
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/Freeze" { | |
Properties { | |
_MainTex ("Texture", 2D) = "white" {} | |
_ShadeColor ("Shade Color", Color) = (0.5,0.5,0.5) | |
_SpecularPower ("Specular Power", Range(0, 30)) = 1 | |
_SpecularColor ("Specular Color", Color) = (0.5,0.5,0.5) | |
_FreezeRate ("Freeze Rate", Range(0.0, 1.0)) = 0 | |
_FreezeRateMax ("Freeze Rate Max", Range(0.0, 1.0)) = 0.7 | |
_FreezeBorder ("Freeze Border", Range(0.0, 1.0)) = 0.05 | |
_FreezeBorderColor ("Freeze Border Color", Color) = (0.5,0.5,0.5) |
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 "Unlit/DemoShader" | |
{ | |
Properties | |
{ | |
_MainTex ("Texture", 2D) = "white" {} | |
} | |
SubShader | |
{ | |
Tags { "RenderType"="Opaque" } | |
LOD 100 |
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
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class ActionCallbackExample : MonoBehaviour | |
{ | |
[SerializeField] private InputAction action; | |
private void OnEnable() | |
{ | |
// Đăng ký callback |
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
class Renderable : IRenderable | |
{ | |
public void render() | |
{ | |
} | |
} | |
class Moveable : IMoveable | |
{ | |
public void move(float time) |
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
{ | |
"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 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 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() | |
{ |
NewerOlder