Esempio n. 1
0
        public void Initialize(Transform parentObject, int iconSize, int depthOffset)
        {
            Transform transform = this.iconRootTransform;

            transform.parent        = parentObject;
            transform.localScale    = Vector3.one;
            transform.localPosition = Vector3.zero;
            MonsterIconTransform.SetSize(this.iconRootTransform, iconSize);
            DepthController.AddWidgetDepth_Static(transform, depthOffset);
            this.Thumbnail.Initialize();
        }
Esempio n. 2
0
 public void SetGimmickIcon(GameObject go)
 {
     this.Gimmick = go.GetComponent <MonsterIconGimmick>();
     global::Debug.Assert(null != this.Gimmick, "Component Not Found : MonsterIconGimmick プレハブを確認してください");
     MonsterIconTransform.AttachParts(this.iconRootTransform, go, this.Gimmick.GetPosition());
 }
Esempio n. 3
0
 public void SetPlayerNo(GameObject go)
 {
     this.PlayerNo = go.GetComponent <MonsterIconPlayerNo>();
     global::Debug.Assert(null != this.PlayerNo, "Component Not Found : MonsterIconPlayerNo プレハブを確認してください");
     MonsterIconTransform.AttachParts(this.iconRootTransform, go, this.PlayerNo.GetPosition());
 }
Esempio n. 4
0
 public void SetMedal(GameObject go)
 {
     this.Medal = go.GetComponent <MonsterIconMedal>();
     global::Debug.Assert(null != this.Medal, "Component Not Found : MonsterIconMedal プレハブを確認してください");
     MonsterIconTransform.AttachParts(this.iconRootTransform, go);
 }
Esempio n. 5
0
 public void SetNewIcon(GameObject go)
 {
     this.New = go.GetComponent <MonsterIconNew>();
     global::Debug.Assert(null != this.New, "Component Not Found : MonsterIconNew プレハブを確認してください");
     MonsterIconTransform.AttachParts(this.iconRootTransform, go, this.New.GetPosition(), this.New.GetRotation());
 }