rc 0.71
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TeamSpecificEffects : MonoBehaviour
|
||||
{
|
||||
public static TeamSpecificEffects instance;
|
||||
|
||||
public Transform[] flipY;
|
||||
void Awake()
|
||||
{
|
||||
instance = this;
|
||||
}
|
||||
|
||||
public void SetTeamSpecificEffects(Team team){
|
||||
foreach(Transform t in flipY){
|
||||
float y = Mathf.Abs(t.localScale.y);
|
||||
t.localScale = new Vector3(t.localScale.x, team == Team.Blue ? -y : y, t.localScale.z);
|
||||
}
|
||||
|
||||
if(team == Team.Blue){
|
||||
CameraEffects.instance.SetUpsideDown(true);
|
||||
}else{
|
||||
CameraEffects.instance.SetUpsideDown(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user