protected virtual void ChangeMaterial(Color givenColor)
 {
     if (playareaCursor)
     {
         playareaCursor.SetMaterialColor(givenColor);
     }
 }
Esempio n. 2
0
 protected virtual void SetPointerMaterial(Color color)
 {
     if (playAreaCursor)
     {
         playAreaCursor.SetMaterialColor(color);
     }
 }
 protected virtual void ChangeMaterial(Color givenColor)
 {
     if (playareaCursor)
     {
         playareaCursor.SetMaterialColor(givenColor, IsValidCollision());
     }
 }
Esempio n. 4
0
        protected virtual void ChangeMaterial(Color givenColor)
        {
            if (playareaCursor != null)
            {
                playareaCursor.SetMaterialColor(givenColor, IsValidCollision());
            }

            if (directionIndicator != null)
            {
                directionIndicator.SetMaterialColor(givenColor, IsValidCollision());
            }
        }
        protected virtual void ChangeMaterial(Color givenColor, Material givenMaterial)
        {
            if (playareaCursor != null)
            {
                playareaCursor.SetMaterialColor(givenColor, IsValidCollision());
            }

            if (directionIndicator != null)
            {
                directionIndicator.SetMaterialColor(givenColor, IsValidCollision());
            }
            //change cursor material
            //customCursor.transform.GetChild(0).gameObject.GetComponent<Renderer>().material = givenMaterial;
        }