// Start is called before the first frame update void Start() { objRenderer = meshObj.GetComponent <Renderer>(); objMaterials = objRenderer.materials; hitProcessor = GetComponent <ProcessHit>(); petProcessor = GetComponent <ProcessPet>(); liftProcessor = GetComponent <ProcessLift>(); grabProcessor = GetComponent <ProcessGrab>(); beckonProcessor = GetComponent <ProcessBeckon>(); currentState = State.Neutral; previousState = currentState; updateState(); updateExpression(); }
// Start is called before the first frame update void Start() { liftProcessor = processorObj.GetComponent <ProcessLift>(); liftProcessor.registerAsLiftableObj(GetComponent <DetectLift>()); handObserverLeft = handObserverLeftObj.GetComponent <HandObserver>(); handObserverRight = handObserverRightObj.GetComponent <HandObserver>(); detectLeapCollision = detectLeapCollisionObj.GetComponent <DetectLeapCollision>(); if (transform.parent != null) { originalParent = transform.parent.gameObject; } else { originalParent = null; } }
// Start is called before the first frame update void Start() { liftProcessor = liftProcessorObj.GetComponent <ProcessLift>(); }