void OnMouseDown() { if (isStay) { if (type == buttonType.location) { effector.GoToNextLocation(next); } if (type == buttonType.scene) { if (wMap.energy >= energyCost) { effector.GoToNextScene(scene); wMap.GetEnergy(energyCost); } } } }
void OnMouseDown() { if (isStay) { if (type == buttonType.location) { effector.GoToNextLocation(next); } if (type == buttonType.scene) { if (wMap.energy >= energyCost) { effector.GoToNextScene(scene); wMap.GetEnergy(energyCost); } } } }