Commit 99b88fd0 authored by Ashley N Crouch's avatar Ashley N Crouch
Browse files

Merge branch 'activateScripts' into 'master'

Activate scripts

See merge request !24
parents 2b11e4cb 6312759e
...@@ -65,6 +65,14 @@ public class DoorScript : MonoBehaviour { ...@@ -65,6 +65,14 @@ public class DoorScript : MonoBehaviour {
} }
} }
} }
}
public void activate()
{
unlockDoor();
}
public void deactivate()
{
state = State.locked;
} }
} }
...@@ -39,4 +39,14 @@ public class Torch : MonoBehaviour { ...@@ -39,4 +39,14 @@ public class Torch : MonoBehaviour {
currentSprite.sprite = unlitTorch; currentSprite.sprite = unlitTorch;
} }
} }
public void activate()
{
activateTorch();
}
public void deactivate()
{
deactivateTorch();
}
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment