public override IEnumerable <StateVariable> GetState() { return(new[] { new StateVariable { Name = "Script", Value = Script, Type = StateVariable.StateType.Input }, new StateVariable { Name = "IncludeFile", Value = IncludeFile, Type = StateVariable.StateType.Input }, new StateVariable { Name = "EscapeScript", Value = EscapeScript.ToString(), Type = StateVariable.StateType.Input }, new StateVariable { Name = "Result", Value = Result, Type = StateVariable.StateType.Output } }); }
// Use this for initialization void Start() { //cc = gameObject.GetComponent<CharacterController>(); bps = FindObjectOfType <ButtonPuzzleScript>(); es = gameObject.GetComponent <EscapeScript>(); myPlayPosition = gameObject.transform.position; }
public override int GetHashCode() { unchecked { var hashCode = base.GetHashCode(); hashCode = (hashCode * 397) ^ (Script != null ? Script.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (int)ScriptType; hashCode = (hashCode * 397) ^ EscapeScript.GetHashCode(); hashCode = (hashCode * 397) ^ (Result != null ? Result.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (DisplayName != null ? DisplayName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ (IncludeFile != null ? IncludeFile.GetHashCode() : 0); return(hashCode); } }
// Use this for initialization void Start() { //cc = gameObject.GetComponent<CharacterController>(); es = gameObject.GetComponent <EscapeScript>(); myPlayPosition = gameObject.transform.position; }
// Use this for initialization void Start() { es = FindObjectOfType <EscapeScript>(); order = 1; }