Ejemplo n.º 1
0
 /**
  * <summary>Unregisters a Parallax2D, so that it is no longer updated</summary>
  * <param name = "_object">The Parallax2D to unregister</param>
  */
 public void Unregister(Parallax2D _object)
 {
     if (parallax2Ds.Contains(_object))
     {
         parallax2Ds.Remove(_object);
     }
 }
Ejemplo n.º 2
0
 /**
  * <summary>Registers a Parallax2D, so that it can be updated</summary>
  * <param name = "_object">The Parallax2D to register</param>
  */
 public void Register(Parallax2D _object)
 {
     if (!parallax2Ds.Contains(_object))
     {
         parallax2Ds.Add(_object);
     }
 }
 private void OnEnable()
 {
     _target = (Parallax2D)target;
 }
Ejemplo n.º 4
0
 /**
  * <summary>Unregisters a Parallax2D, so that it is no longer updated</summary>
  * <param name = "_object">The Parallax2D to unregister</param>
  */
 public void Unregister(Parallax2D _object)
 {
     parallax2Ds.Remove(_object);
 }
Ejemplo n.º 5
0
 /**
  * <summary>Registers a Parallax2D, so that it can be updated</summary>
  * <param name = "_object">The Parallax2D to register</param>
  */
 public void Register(Parallax2D _object)
 {
     parallax2Ds.Add(_object);
 }
 private void OnEnable()
 {
     _target = (Parallax2D) target;
 }