示例#1
0
 void Start()
 {
     changeScenes = gameObject.GetComponent <ChangeScenes>();
     Fade.color   = new Color(0.0f, 0.0f, 0.0f, 0.0f);
     Alpha        = 0.0f;
     CanvasFlag   = false;
 }
 private void Awake()
 {
     //Start at Intro Scene
     instance = this;
     if (SceneManager.GetActiveScene().name == "Team Intro Scene")
     {
         anim.SetTrigger("FadeOut");
         Invoke("loadStart", 2f);
     }
 }
示例#3
0
 void Start()
 {
     fadeSpeed    = 0.002f;
     Red          = Green = Blue = 0.0f;
     Alpha        = 1.0f;
     UpDownChange = false;
     PauzeCount   = AmountNo = 0;
     changeScenes = gameObject.GetComponent <ChangeScenes>();
     GameMode     = 0;
     ArmMove      = 0;
     PDead        = 0;
     BDead        = 0;
 }
示例#4
0
 private void Awake()
 {
     changeScene = GetGlobalObject.FindAndGetComponent <ChangeScenes>(this.gameObject, "Global");
 }