Example #1
0
 /// <summary>
 /// Checks if is fuse game (need to find better way)
 /// </summary>
 /// <param name="game">What is the game that needs to be tested?</param>
 void IsFuseGame(FuseGame game)
 {
     //Check if is a fuse game
     if (game != null)
     {
         game.location = fuseLocations;
     }
 }
Example #2
0
 /// <summary>
 /// Overrided function when script is created
 /// </summary>
 protected override void Awake()
 {
     base.Awake();
     parent = transform.parent.parent.gameObject;
     game   = GetComponentInParent <FuseGame>();
     if (game == null)
     {
         game2   = GetComponentInParent <FuseGame2>();
         isGame1 = false;
     }
     rb = GetComponent <Rigidbody>();
 }