private void Plank_onClick(object sender) { delta = Vector2.One * 5; if (hidingObject != null) { hidingObject.ChangeMovement(Player.Movement.Dead); hidingObject = null; } }
public void Collide(ICollidAble collider) { if (collider is ClickableObject) { ClickableObject obj = collider as ClickableObject; if (obj.Info.texturePath.Contains("puddle") || obj.Info.texturePath.Contains("oil")) { obj.ChangeMovement(Player.Movement.Current); hidingObject = obj; } } }