Unity3d with Myo SDK

Dev env 
1. Mac High Sierra
2. Unity 5.6 / 2017.2
3. Latest Myo SDK

To fix this problem

line for line and I got 3 errors in my console all saying:

Assets/Myo Samples/Scripts/ColorBoxByPose.cs(49,26): error CS1061: Type `UnityEngine.Component' does not contain a definition for `material' and no extension method `material' of type `UnityEngine.Component' could be found. Are you missing an assembly reference?

Replace with this 

else if (thalmicMyo.pose == Pose.WaveIn) {
  GetComponent<Renderer>().material = waveInMaterial;

  ExtendUnlockAndNotifyUserAction (thalmicMyo);
} else if (thalmicMyo.pose == Pose.WaveOut) {
  GetComponent<Renderer>().material = waveOutMaterial;

  ExtendUnlockAndNotifyUserAction (thalmicMyo);
} else if (thalmicMyo.pose == Pose.DoubleTap) {
  GetComponent<Renderer>().material = doubleTapMaterial;

  ExtendUnlockAndNotifyUserAction (thalmicMyo);

renderer.material => GetComponent<Renderer>().material

That's it

Reference: https://developer.thalmic.com/forums/topic/10708/?page=1#post-19408