public SapMaterial(cSapModel _mySapObjectModel, string _matName, eMatType _matType, matColor _materialColor = matColor.Default)
 {
     this.MySapObjectModel = _mySapObjectModel;
     this.matName          = _matName;
     this.matType          = _matType;
     this.materialColor    = _materialColor;
 }
    // Update is called once per frame
    void Update()
    {
        matColor mc = obj.GetComponent <matColor>();

        if (mc.colorNow == "green")
        {
            walk();
        }
    }
Пример #3
0
    // Update is called once per frame
    void Update()
    {
        matColor mc = obj.GetComponent <matColor>();

        if (mc.colorNow == "green")
        {
            anim.SetBool("isMoving", true);
        }
        else
        {
            anim.SetBool("isMoving", false);
        }
    }
 public void SetNewMaterial(string matName, eMatType matType, matColor materialColor = matColor.Default)
 {
     mySapObjectModel.PropMaterial.SetMaterial(matName, matType, (int)materialColor);
 }
Пример #5
0
 public void SetPointerColor(matColor color)
 {
     pointers[0].material = materials[(int)color];
     pointers[1].material = materials[(int)color];
 }