void Start()
 {
     if (Application.loadedLevel == SceneName.Title.ToInt()){
         act	=	transform.root.GetComponent<SceneLoadManager>().NextScene;
     }
     SoundManager.obj.PlayBGM(2,true);
     decIcons	=	0;
     length		=	transform.childCount;
     childObj	=	new GameObject[length];
     for(int i=0;i<length;i++){
         childObj[i]			=	transform.GetChild(i).gameObject;
         if(childObj[i]	==	null)					continue;
         if(iconCount == null)		iconCount	=	childObj[i].GetComponent<IconCount>();
         if(childObj[i].tag	!=	decTexture)	continue;
         decImage			=	childObj[i].GetComponent<Image>();
         decTrans			=	decImage.rectTransform;
         decTrans.localScale	=	Vector2.zero;
     }
     playMax		=	0;
     PlayerNum	=	4;
     input			=	new InputData[PlayerNum];
     for(int i = 0;i<PlayerNum;i++){
         input[i]		=	new InputData();
         InputPad.InputData(ref input[i], i+1);
     }
 }
Пример #2
0
 void Start()
 {
     int	objLength	=	transform.childCount;
     obj				=	new GameObject[length];
     for(int i=0;i<objLength;i++){
         if(icon != null)	break;
         icon	=	transform.GetChild(i).GetComponent<IconCount>();
     }
 }
Пример #3
0
    void Start()
    {
        int objLength = transform.childCount;

        obj = new GameObject[length];
        for (int i = 0; i < objLength; i++)
        {
            if (icon != null)
            {
                break;
            }
            icon = transform.GetChild(i).GetComponent <IconCount>();
        }
    }
Пример #4
0
 void Start()
 {
     selectNo            = 4;
     swicthFlg           = 0;
     timer               = maxTime;
     decFlg              = false;
     cancelFlg           = false;
     setFlg              = false;
     prevPos             = transform.position;
     image               = gameObject.GetComponent <Image>();
     trans               = image.rectTransform;
     parentObj           = transform.parent.transform.parent.gameObject;
     ic                  = parentObj.GetComponent <IconCount>();
     send                = false;
     ic.selectNo[No - 1] = 1;
 }
Пример #5
0
 void Start()
 {
     PCursor             = null;
     state               = STATUS.None;
     selectNo            = 4;
     image               = GetComponent <Image>();
     trans               = image.rectTransform;
     trans.localScale    = Vector3.one;
     timer               = 0.0f;
     trans.localPosition = DEFALTPOS[No];
     PREVPOS             = transform.position;
     parentObj           = transform.parent.gameObject;
     ic = parentObj.GetComponent <IconCount>();
     ic.selectNo[No + 1] = 2;
     send = false;
 }
Пример #6
0
 void Start()
 {
     selectNo			=	4;
     swicthFlg			=	0;
     timer				=	maxTime;
     decFlg				=	false;
     cancelFlg			=	false;
     setFlg				=	false;
     prevPos				=	transform.position;
     image				=	gameObject.GetComponent<Image>();
     trans				=	image.rectTransform;
     parentObj			=	transform.parent.transform.parent.gameObject;
     ic					=	parentObj.GetComponent<IconCount>();
     send				=	false;
     ic.selectNo[No-1]	=	1;
 }
 void Start()
 {
     if (Application.loadedLevel == SceneName.Title.ToInt())
     {
         act = transform.root.GetComponent <SceneLoadManager>().NextScene;
     }
     SoundManager.obj.PlayBGM(2, true);
     decIcons = 0;
     length   = transform.childCount;
     childObj = new GameObject[length];
     for (int i = 0; i < length; i++)
     {
         childObj[i] = transform.GetChild(i).gameObject;
         if (childObj[i] == null)
         {
             continue;
         }
         if (iconCount == null)
         {
             iconCount = childObj[i].GetComponent <IconCount>();
         }
         if (childObj[i].tag != decTexture)
         {
             continue;
         }
         decImage            = childObj[i].GetComponent <Image>();
         decTrans            = decImage.rectTransform;
         decTrans.localScale = Vector2.zero;
     }
     playMax   = 0;
     PlayerNum = 4;
     input     = new InputData[PlayerNum];
     for (int i = 0; i < PlayerNum; i++)
     {
         input[i] = new InputData();
         InputPad.InputData(ref input[i], i + 1);
     }
 }
Пример #8
0
 void Start()
 {
     PCursor				=	null;
     state				=	STATUS.None;
     selectNo			=	4;
     image				=	GetComponent<Image>();
     trans				=	image.rectTransform;
     trans.localScale	=	Vector3.one;
     timer				=	0.0f;
     trans.localPosition	=	DEFALTPOS[No];
     PREVPOS				=	transform.position;
     parentObj			=	transform.parent.gameObject;
     ic					=	parentObj.GetComponent<IconCount>();
     ic.selectNo[No+1]	=	2;
     send				=	false;
 }