예제 #1
0
 // 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;
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     rb2d = GetComponent <Rigidbody2D> ();
     anim = GetComponent <Animator> ();
     gt   = GetComponentInChildren <GroundTrigger> ();
     ct   = GetComponentInChildren <CrawlTrigger> ();
     wt   = wallchecker.GetComponent <WallTrigger> ();
 }
예제 #3
0
 // 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");
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     rb2d = GetComponent <Rigidbody2D>();
     sr   = GetComponent <SpriteRenderer> ();
     wt   = wallchecker.GetComponent <WallTrigger>();
 }