public void SetParticipants(GameObject _go, GameObject _goParent, string doorName) { if (_goParent != stealthIndicators) { if (stealthIndicators != null) { if (!stealthDoorButton.completed) { Off(); } } started = false; passed = false; stealthDoorButton = GetScript <DoorSequenceButton>(_go); stealthIndicators = _goParent; GameObject door_; door_ = GameObject.GetGameObjectByName(doorName); door = door_; Reset(); } }
public void SetParticipants(GameObject _go, GameObject _goParent, string doorName) { if(_goParent != stealthIndicators) { if(stealthIndicators != null) { if(!stealthDoorButton.completed) { Off(); } } started = false; passed = false; stealthDoorButton = GetScript<DoorSequenceButton>(_go); stealthIndicators = _goParent; GameObject door_; door_ = GameObject.GetGameObjectByName(doorName); door = door_; Reset(); } }