// 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>(); }
// 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>(); }