// Use this for initialization void Start() { baseString = "Player Score : "; m_CoinManager = GameObject.Find("CoinManager").GetComponent <CoinManager>(); m_EndGameWall = GameObject.Find("EndWall").GetComponent <WallTrigger>(); m_ScoreNeeded = m_CoinManager.m_ClearAmount; }
// Use this for initialization void Start() { rb2d = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator> (); gt = GetComponentInChildren <GroundTrigger> (); ct = GetComponentInChildren <CrawlTrigger> (); wt = wallchecker.GetComponent <WallTrigger> (); }
// Use this for initialization void Start() { Health = MaxHealth; player = GameObject.FindObjectOfType(typeof(Player)) as Player; cameraShake = GameObject.FindObjectOfType(typeof(CameraShake)) as CameraShake; wallTrigger = GameObject.FindObjectOfType(typeof(WallTrigger)) as WallTrigger; origWallPosition.x = Wall.transform.position.x; origWallPosition.y = Wall.transform.position.y; //StartCoroutine("boss"); }
// Use this for initialization void Start() { rb2d = GetComponent <Rigidbody2D>(); sr = GetComponent <SpriteRenderer> (); wt = wallchecker.GetComponent <WallTrigger>(); }