// Use this for initialization void Start() { lazerAnimation = this; pd = GetComponent <PlayableDirector>(); isAnimating = false; beams = new List <GameObject>(); beamLengths = new List <float>(); }
void Start() { player = GameObject.FindGameObjectWithTag("Player").transform; stageController = GameObject.Find("StageController").GetComponent <StageController>(); lazer = player.Find("Lazer").GetComponent <LazerAnimation>(); trigger = GameObject.Find("DragonObserver").GetComponent <ColliderObserver>(); trigger.TagName = "Player"; pos = new Vector3(5.5f, -1.5f, 0); }