Exemplo n.º 1
0
        public override void PreStart()
        {
            if (!Object.op_Equality((Object)this.mStandChara, (Object)null))
            {
                return;
            }
            this.mStandChara = EventStandChara.Find(this.CharaID);
            if (!Object.op_Equality((Object)this.mStandChara, (Object)null))
            {
                return;
            }
            this.mStandChara = Object.Instantiate(this.mStandCharaResource.asset) as EventStandChara;
            RectTransform component = (RectTransform)((Component)this.mStandChara).GetComponent <RectTransform>();

            this.mStandChara.InitPositionX(((Component)this.ActiveCanvas).get_transform() as RectTransform);
            Vector3 vector3;

            // ISSUE: explicit reference operation
            ((Vector3)@vector3).\u002Ector(this.mStandChara.GetPositionX((int)this.Position), 0.0f, 0.0f);
            ((Transform)component).set_position(vector3);
            ((Component)this.mStandChara).get_transform().SetParent(((Component)this.ActiveCanvas).get_transform(), false);
            ((Component)this.mStandChara).get_transform().SetAsFirstSibling();
            this.mStandChara.CharaID = this.CharaID;
            ((Component)this.mStandChara).get_gameObject().SetActive(false);
        }
Exemplo n.º 2
0
 public override void PreStart()
 {
     if (!Object.op_Equality((Object)this.mStandChara, (Object)null))
     {
         return;
     }
     this.mStandChara = EventStandChara.Find(this.CharaID);
 }
Exemplo n.º 3
0
 public override void OnActivate()
 {
     if (string.IsNullOrEmpty(this.CharaID))
     {
         for (int index = EventStandChara.Instances.Count - 1; index >= 0; --index)
         {
             EventStandChara.Instances[index].Close(0.5f);
         }
     }
     else
     {
         EventStandChara eventStandChara = EventStandChara.Find(this.CharaID);
         if (Object.op_Inequality((Object)eventStandChara, (Object)null))
         {
             eventStandChara.Close(0.5f);
         }
     }
     this.ActivateNext();
 }