示例#1
0
 public bool Init()
 {
     if (man == null)
     {
         man = FindObjectOfType <ParallaxManager>();
     }
     return(true);
 }
示例#2
0
        public void Init(ParallaxPool.Element element, ParallaxManager manager)
        {
            man = manager;

            startPosition = transform.position;
            state         = EState.In;

            sprite1.sprite = element.img;
            sprite2.sprite = element.img;
            sprite3.sprite = element.img;
            speed          = element.speed;
        }