예제 #1
0
 public void SetLureParams(string tittle, string spName, string heavy, UIAtlas at)
 {
     tittleLb.text     = tittle;
     lureSp.atlas      = at;
     lureSp.material   = at.spriteMaterial;
     lureSp.spriteName = spName;
     PSGameUtils.SetUISprite(AdonSp, "");
     markSp.text = heavy;
 }
예제 #2
0
 public void SetRig(string addOnSp, bool shouldShowBack, Vector3 AdonLocalTrans, Vector3 AdonLocalRot)
 {
     PSGameUtils.SetUISprite(AdonSp, addOnSp);
     if (shouldShowBack)
     {
         AdonSp.depth = lureSp.depth - 1;
     }
     else
     {
         AdonSp.depth = lureSp.depth + 1;
     }
     AdonSp.transform.localPosition = AdonLocalTrans;
     AdonSp.transform.localRotation = Quaternion.Euler(AdonLocalRot);
 }
예제 #3
0
 public void SetLureParams(string tittle, string spName, UIAtlas at)
 {
     if (tittle == "")
     {
         tittleLb.text     = tittle;
         lureSp.atlas      = at;
         logo.enabled      = true;
         lureSp.material   = at.spriteMaterial;
         lureSp.spriteName = spName;
         PSGameUtils.SetUISprite(AdonSp, "");
     }
     else
     {
         logo.enabled      = false;
         tittleLb.text     = tittle;
         lureSp.atlas      = at;
         lureSp.material   = at.spriteMaterial;
         lureSp.spriteName = spName;
         PSGameUtils.SetUISprite(AdonSp, "");
     }
 }