public bool Init() { if (man == null) { man = FindObjectOfType <ParallaxManager>(); } return(true); }
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; }