Smoothed animation for taking a swig.
This commit is contained in:
parent
1aa9a08590
commit
d0a546ffac
16 changed files with 1306 additions and 481 deletions
|
|
@ -3,6 +3,8 @@ using System.Collections;
|
|||
|
||||
public class Demon : MonoBehaviour {
|
||||
|
||||
public Renderer characterSprite;
|
||||
|
||||
void OnTriggerEnter(Collider other) {
|
||||
|
||||
//Instantiate(explosion, transform.position, transform.rotation);
|
||||
|
|
@ -13,7 +15,7 @@ public class Demon : MonoBehaviour {
|
|||
}
|
||||
|
||||
if (other.tag == "VVAura") {
|
||||
renderer.material.color = Color.red;
|
||||
characterSprite.renderer.material.color = Color.red;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue