예제 #1
0
        private void Plank_onClick(object sender)
        {
            delta = Vector2.One * 5;

            if (hidingObject != null)
            {
                hidingObject.ChangeMovement(Player.Movement.Dead);
                hidingObject = null;
            }
        }
예제 #2
0
        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;
                }
            }
        }