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(); }
public void Activate() { key.Appear(); GetNode <Sprite>("Sprite").Visible = false; GetNode <CollisionShape2D>("CollisionShape2D").Disabled = true; }