コード例 #1
0
 public void Recycle(TextAndAnim o)
 {
     if (o != null)
     {
         o.IsActive = false;
     }
 }
コード例 #2
0
 private void Start( )
 {
     main = Camera.main;
     //change the scaler ref resolution to current device
     scaler.referenceResolution = new Vector2(Screen.width, Screen.height);
     // get all then animation and text component due to resultObjects
     foreach (GameObject t in resultObjects)
     {
         TextAndAnim ta = new TextAndAnim(t.GetComponent <Text> ( ), t.GetComponent <Animation> ( ));
         texts.Add(ta);
         ta.IsActive = false;
     }
 }