void Start() { DefaultRotationSpeed = RotationSpeed; GameMaster = GameObject.Find("GameMaster"); SpawnBallControllerScript = GameMaster.GetComponent <SpawnBallController>(); WinnerControllerScript = GameMaster.GetComponent <WinnerController>(); }
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); }
public void Initialize(WinnerController l) { _listener = l; }
void Start() { SpawnBallControllerScript = gameObject.GetComponent <SpawnBallController>(); WinnerControllerScript = gameObject.GetComponent <WinnerController>(); }