示例#1
0
    public void LoadClickableInformation(BodyInformation leg)
    {
        Clickable clickable = this.gameObject.AddComponent(typeof(Clickable)) as Clickable;

        clickable.notifyInformation = leg.notifyInformation;
        // further -> PUT OnMouseOverIcon
    }
示例#2
0
    internal void LoadArt(BodyInformation bodyPart)
    {
        BodyImage bodyImage = bodyImages.FirstOrDefault(x => x.bodyPartOrigin == bodyPart.bodyPart);

        if (!bodyImage.IsDefault())
        {
            this.image.sprite = bodyImage.image;
        }
    }
示例#3
0
 void UpdateLeg(BodyInformation bodyInformation)
 {
     this.legs.LoadArt(bodyInformation);
 }
示例#4
0
 void UpdateArm(BodyInformation bodyInformation)
 {
     this.arms.LoadArt(bodyInformation);
 }
示例#5
0
 void UpdateTorso(BodyInformation bodyInformation)
 {
     this.torso.LoadArt(bodyInformation);
 }
示例#6
0
 void UpdateHead(BodyInformation bodyInformation)
 {
     this.head.LoadArt(bodyInformation);
 }
示例#7
0
 private static void LoadHead(BodyInformation head)
 {
 }
示例#8
0
 private static void LoadArm(BodyInformation arm)
 {
 }
示例#9
0
 private static void LoadTorso(BodyInformation torso)
 {
 }
示例#10
0
 private static void LoadLeg(BodyInformation leg)
 {
 }
 private static void LoadHead(BodyInformation head)
 {
     singleton.head.LoadClickableInformation(head);
     singleton.head.LoadArt(head);
 }
 private static void LoadTorso(BodyInformation torso)
 {
     singleton.torso.LoadClickableInformation(torso);
     singleton.torso.LoadArt(torso);
 }
 private static void LoadArm(BodyInformation arm)
 {
     singleton.arms.LoadClickableInformation(arm);
     singleton.arms.LoadArt(arm);
 }
 private static void LoadLegs(BodyInformation leg)
 {
     singleton.legs.LoadClickableInformation(leg);
     singleton.legs.LoadArt(leg);
 }