Exemplo n.º 1
0
 void Start()
 {
     DefaultRotationSpeed      = RotationSpeed;
     GameMaster                = GameObject.Find("GameMaster");
     SpawnBallControllerScript = GameMaster.GetComponent <SpawnBallController>();
     WinnerControllerScript    = GameMaster.GetComponent <WinnerController>();
 }
Exemplo n.º 2
0
 void Start()
 {
     Donal    = GameObject.FindGameObjectWithTag("Donal");
     playerT  = Donal.transform;
     rb2d     = GetComponent <Rigidbody2D> ();
     animator = GetComponent <Animator> ();
     CheckOrientation();
     InvokeRepeating("Shooting", 0f, 1.2f);
     InvokeRepeating("Jump", 1f, 3f);
     WinnerController.ActiveWin(false);
 }
Exemplo n.º 3
0
 public void Initialize(WinnerController l)
 {
     _listener = l;
 }
Exemplo n.º 4
0
 void Start()
 {
     SpawnBallControllerScript = gameObject.GetComponent <SpawnBallController>();
     WinnerControllerScript    = gameObject.GetComponent <WinnerController>();
 }