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 System.Collections; | |
// this is a general tab listener | |
public class TabListener : MonoBehaviour { | |
public TabController tabController; | |
public int listenedTabNumber; // listenedTabNumber tabnumber | |
void TabHandler(int tabNumber) { | |
Debug.Log("number is " +tabNumber); |
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 System.Collections; | |
using System.Collections.Generic; | |
public class TabController : IgnoreTimeScale { | |
public List<UICheckbox> tabs; | |
public bool canStartUncalled = true; | |
public int StartedTabNumber = 0; // there should be one tab started as checked | |
public delegate void OnTabSelected(int tabNumber); |
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 UnityEditor; | |
using System.Collections; | |
static public class UIToolExtension{ | |
//add this to NGUImenu.cs | |
[MenuItem("NGUI/Refresh a Collider #&r")] | |
static public void RefreshCollider() { | |
GameObject go = Selection.activeGameObject; |
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/testShader2" { | |
Properties { | |
_Color("Main Color",Color) = (1,1,1,1) | |
_SpecColor("Spec Color", Color) = (1,1,1,1) | |
_Emission("Emmisive Color", Color) = (0,0,0,0) | |
_Shininess("Shininess", Range(0.01, 1)) = 0.7 | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
//Tags { "RenderType"="Opaque" } |
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/NewShader" { | |
Properties { | |
_Color("Color",Color) = (1,0,0) | |
_MainTex("Texture Main", 2D) = ""{ TexGen sphereMap } | |
_AltTex("Texture Alt", 2D) = "" { } | |
_Number("nameNumber", Range(0,1)) = 1 | |
} | |
SubShader { |
NewerOlder