void Start() { animator = GetComponent <Animator>(); rb2d = GetComponent <Rigidbody2D>(); os = GetComponent <DirectionRaycasting2DCollider>(); m = GameObject.FindGameObjectWithTag("Manager").GetComponent <Manager>(); }
// Use this for initialization void Start () { isTouchingBlocks = false; player = GameObject.Find ("Player"); playerRaycast = player.GetComponent<DirectionRaycasting2DCollider> (); blocksToMoveRB2D = blocksToMove.GetComponent<Rigidbody2D> (); blocksToMoveRayCast = blocksToMove.GetComponent<DirectionRaycasting2DCollider> (); //thisRayCast = GetComponent<DirectionRaycasting2DCollider> (); //rb2D = GetComponent<Rigidbody2D> (); //didCoroutineOnce = false; }
// Use this for initialization void Start () { player = GameObject.FindGameObjectWithTag ("Player"); puzzleStarted = false; rayCast = player.GetComponent<DirectionRaycasting2DCollider> (); jumpCounter = 0; surroundingBlocks = new List<GameObject> (); finishedCaseStatement = false; ring1.SetActive (false); ring2.SetActive (false); ring3.SetActive (false); ring4.SetActive (false); complete = false; puzzleHasReset = false; audioSource = GetComponent<AudioSource>(); }
// Use this for initialization void Start () { //Reference so I don't have to type this long thing out repeatedly rend = GetComponent<Renderer>(); rb2d = GetComponent<Rigidbody2D> (); anim = GetComponent<Animator>(); raycast = GetComponent<DirectionRaycasting2DCollider> (); /* blockArray.Add(jumpBlockA); blockArray.Add(jumpBlockB); blockArray.Add(jumpBlockC); */ if(anim == null) { Debug.Log("No Animator Attached to Player"); } }