hoop drop animations, multiemission
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Station46.Scripts
|
||||
/// </summary>
|
||||
public class Emission : MonoBehaviour
|
||||
{
|
||||
private static readonly int EmissionColorNameID = Shader.PropertyToID("_EmissionColor");
|
||||
protected static readonly int EmissionColorNameID = Shader.PropertyToID("_EmissionColor");
|
||||
|
||||
[Tooltip("The colour of the emission.")]
|
||||
[ColorUsage(false, true)]
|
||||
@@ -25,7 +25,7 @@ namespace Station46.Scripts
|
||||
private Color _previousColor;
|
||||
private Material _material;
|
||||
|
||||
private void Awake()
|
||||
protected virtual void Awake()
|
||||
{
|
||||
_material = emissionRenderer.material;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ namespace Station46.Scripts
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangedToggle()
|
||||
protected virtual void ChangedToggle()
|
||||
{
|
||||
if (active)
|
||||
{
|
||||
@@ -63,7 +63,7 @@ namespace Station46.Scripts
|
||||
}
|
||||
}
|
||||
|
||||
private void ChangedColor()
|
||||
protected virtual void ChangedColor()
|
||||
{
|
||||
_material.SetColor(EmissionColorNameID, color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user