Example #1
0
 // Start is called before the first frame update
 private void Start()
 {
     canvas            = GameObject.FindGameObjectWithTag("Canvas");
     moveBetweenFrames = canvas.GetComponent <MoveBetweenFrames>();
 }
Example #2
0
 private void Start()
 {
     moveBetweenFrames = GameObject.FindGameObjectWithTag("Canvas").GetComponent <MoveBetweenFrames>();
     moveBetweenFrames.AddGameobject(gameObject);
     cam = Camera.main;
 }