예제 #1
0
 void KeyApearing()
 {
     upButton.enabled    = false;
     downButton.enabled  = false;
     leftButton.enabled  = false;
     rightButton.enabled = false;
     iTween.ScaleTo(candy.gameObject, iTween.Hash("scale", Vector3.zero, "time", animateTime, "easeType", iTween.EaseType.linear));
     key.Appear();
 }
예제 #2
0
 public void Activate()
 {
     key.Appear();
     GetNode <Sprite>("Sprite").Visible = false;
     GetNode <CollisionShape2D>("CollisionShape2D").Disabled = true;
 }