コード例 #1
0
ファイル: ColorsPuzzle.cs プロジェクト: pzanon/MuvucaGame01
 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;
     puzzleController.cursor.GetComponent <Renderer>().enabled        = true;
     heroStrong.GetComponent <HeroControl>().enabled = false;
     heroFast.GetComponent <HeroControl>().enabled   = false;
     heroStrong.StopWalk();
     heroFast.StopWalk();
     puzzleController.setControlActive();
     this.isActive = true;
 }