protected virtual void ChangeMaterial(Color givenColor) { if (playareaCursor) { playareaCursor.SetMaterialColor(givenColor); } }
protected virtual void SetPointerMaterial(Color color) { if (playAreaCursor) { playAreaCursor.SetMaterialColor(color); } }
protected virtual void ChangeMaterial(Color givenColor) { if (playareaCursor) { playareaCursor.SetMaterialColor(givenColor, IsValidCollision()); } }
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; }