Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     mScale    = new Vector3(Mathf.Abs(transform.localScale.x), transform.localScale.y, transform.localScale.z);
     mPlayerID = playerID;
     mUIButton = gameObject.GetComponent <UISlicedSprite>();
     mAni      = gameObject.GetComponent <UISpriteAnimation>();
     if (mAni)
     {
         mAni.enabled = false;
     }
     mUpNDown = gameObject.GetComponent <UpNDown>();
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     mScale = new Vector3(Mathf.Abs(transform.localScale.x), transform.localScale.y, transform.localScale.z);
     mPlayerID = playerID;
     mUIButton = gameObject.GetComponent<UISlicedSprite>();
     mAni = gameObject.GetComponent<UISpriteAnimation>();
     if(mAni)mAni.enabled = false;
     mUpNDown = gameObject.GetComponent<UpNDown>();
 }