Beispiel #1
0
 public override void Activate()
 {
     Terminal.GetComponent <Renderer>().enabled        = true;
     GetComponent <Renderer>().enabled                 = true;
     GetComponentInChildren <SpriteRenderer>().enabled = true;
     puzzleController.SelectionBox1.GetComponent <Renderer>().enabled = true;
     puzzleController.SelectionBox2.GetComponent <Renderer>().enabled = true;
     heroStrong.GetComponent <HeroControl>().enabled = false;
     heroFast.GetComponent <HeroControl>().enabled   = false;
     heroStrong.StopWalk();
     heroFast.StopWalk();
     puzzleController.setControlActive();
     this.isActive = true;
 }
Beispiel #2
0
 public void Start()
 {
     rigidBodyHeroStrong = heroStrong.GetComponent <Rigidbody2D>();
     rigidBodyHeroFast   = heroFast.GetComponent <Rigidbody2D>();
 }