示例#1
0
        public void Initialize(Canvas canvas, FDCreature creature, ShowType showType, Action <int> callback = null)
        {
            LocalizedStrings.SetLanguage("zh-CN");

            if (creature == null)
            {
                throw new ArgumentNullException("creature");
            }

            base.Initialize(canvas);

            this.OnCallback      = callback;
            this.gameObject.name = "CreatureDialog";

            this.transform.localPosition = new Vector3(0, 0, 0);
            this.transform.localScale    = new Vector3(1f, 1f, 1f);

            this.creature = creature;
            this.showType = showType;
        }