예제 #1
0
        /*
         * 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>();
            }
        }
예제 #2
0
 /*
 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>();
 }