Ejemplo n.º 1
0
    private void Start()
    {
        switchHead = GetComponent <SwitchHead>();

        skinMesh = skinMeshRenderer.sharedMesh;

        salsaBlendShape = new SalsaBlendShape();

#if PHOTON_SOLUTION
        photonView.ObservedComponents.Add(this);
#endif
    }
Ejemplo n.º 2
0
    public void switchMyHead()
    {
        if (switchHead == null)
        {
            switchHead = GetComponent <SwitchHead>();
        }

        if (currentType == EHeadType.Human)
        {
            currentType = EHeadType.Robot;
        }
        else
        {
            currentType = EHeadType.Human;
        }

        switchHead.switchHead(currentType);
    }