/* * void OnGUI() * { * Vector2 vec = Camera.main.WorldToScreenPoint(transform.position); * GUI.Label(new Rect(vec.x, Screen.height - vec.y,50,80), string.Format("{0}\n{1}:{2}", mState.ToString(),_X,_Y)); * }*/ void Start() { _Fader.Set(_Render, Values.Block_ChangeColorDuration); mState = State.EMPTY; if (!container) { container = transform.parent.GetComponent <MatchContainer>(); } }
/* void OnGUI() { Vector2 vec = Camera.main.WorldToScreenPoint(transform.position); GUI.Label(new Rect(vec.x, Screen.height - vec.y,50,80), string.Format("{0}\n{1}:{2}", mState.ToString(),_X,_Y)); }*/ void Start() { _Fader.Set(_Render, Values.Block_ChangeColorDuration); mState = State.EMPTY; if (!container) container = transform.parent.GetComponent<MatchContainer>(); }