Ejemplo n.º 1
0
        private void Start()
        {
            this.mResetScrollPos = true;
            if (this.SyncScrollWith.Count == 0 && !string.IsNullOrEmpty(this.SyncScrollWithID))
            {
                GameObject[] gameObjects = GameObjectID.FindGameObjects(this.SyncScrollWithID);
                if (gameObjects != null)
                {
                    foreach (GameObject gameObject in gameObjects)
                    {
                        this.SyncScrollWith.Add((GiziScroll)gameObject.GetComponent <GiziScroll>());
                    }
                }
            }
            Canvas component = (Canvas)((Component)this).get_gameObject().GetComponent <Canvas>();

            if (!Object.op_Inequality((Object)component, (Object)null))
            {
                return;
            }
            Rect pixelRect = component.get_pixelRect();

            // ISSUE: explicit reference operation
            this.BGWidth = (float)((double)((Rect)@pixelRect).get_width() / (double)component.get_scaleFactor() + 100.0);
        }
 public override void OnActivate()
 {
     GameObject[] gameObjects = GameObjectID.FindGameObjects(this.ObjectID);
     for (int index = 0; index < gameObjects.Length; ++index)
     {
         if (Object.op_Inequality((Object)gameObjects[index], (Object)null))
         {
             Animation component = (Animation)gameObjects[index].GetComponent <Animation>();
             if (Object.op_Inequality((Object)component, (Object)null))
             {
                 EventAction_AnimateObject.PlayAnimation(component, this.AnimationID);
             }
         }
     }
     for (int index = 0; index < this.Sequence.SpawnedObjects.Count; ++index)
     {
         if (Object.op_Inequality((Object)this.Sequence.SpawnedObjects[index], (Object)null) && ((Object)this.Sequence.SpawnedObjects[index]).get_name() == this.ObjectID)
         {
             Animation component = (Animation)this.Sequence.SpawnedObjects[index].GetComponent <Animation>();
             if (Object.op_Inequality((Object)component, (Object)null))
             {
                 EventAction_AnimateObject.PlayAnimation(component, this.AnimationID);
             }
         }
     }
     this.ActivateNext();
 }
 public override void OnActivate()
 {
     GameObject[] gameObjects = GameObjectID.FindGameObjects(this.CanvasID);
     if (gameObjects.Length > 0)
     {
         this.mCanvasGroup = new CanvasGroup[gameObjects.Length];
         for (int index = 0; index < gameObjects.Length; ++index)
         {
             this.mCanvasGroup[index] = GameUtility.RequireComponent <CanvasGroup>(gameObjects[index]);
         }
     }
     else
     {
         this.ActivateNext();
     }
 }
Ejemplo n.º 4
0
 private void Start()
 {
     this.mResetScrollPos = true;
     if (this.SyncScrollWith.Count != 0 || string.IsNullOrEmpty(this.SyncScrollWithID))
     {
         return;
     }
     GameObject[] gameObjects = GameObjectID.FindGameObjects(this.SyncScrollWithID);
     if (gameObjects == null)
     {
         return;
     }
     foreach (GameObject gameObject in gameObjects)
     {
         this.SyncScrollWith.Add((GiziScroll)gameObject.GetComponent <GiziScroll>());
     }
 }