private void Start() { switchHead = GetComponent <SwitchHead>(); skinMesh = skinMeshRenderer.sharedMesh; salsaBlendShape = new SalsaBlendShape(); #if PHOTON_SOLUTION photonView.ObservedComponents.Add(this); #endif }
public void switchMyHead() { if (switchHead == null) { switchHead = GetComponent <SwitchHead>(); } if (currentType == EHeadType.Human) { currentType = EHeadType.Robot; } else { currentType = EHeadType.Human; } switchHead.switchHead(currentType); }