private void Start() { playerMovement = GetComponent <PlayerMovement>(); Assert.IsNotNull(playerMovement, "Failed to find PlayerMovement script."); animator = GetComponent <Animator>(); Assert.IsNotNull(animator, "Failed to find Animator component."); readPlayerInput = GetComponentInParent <ReadPlayerInput>(); Assert.IsNotNull(readPlayerInput, "Failed to find ReadPlayerInput script."); }
private void Start() { Assert.IsNotNull(bulletPrefab, "Failed to find BulletPrefab GameObject."); Assert.IsNotNull(chargedBulletPrefab, "Failed to find ChargedBulletPrefab GameObject."); Assert.IsNotNull(firePoint, "Failed to find FirePoint component."); animator = GetComponent <Animator>(); Assert.IsNotNull(animator, "Failed to find Animator component."); playerMovement = GetComponent <PlayerMovement>(); Assert.IsNotNull(playerMovement, "Failed to find PlayerMovement script."); readPlayerInput = GetComponentInParent <ReadPlayerInput>(); Assert.IsNotNull(readPlayerInput, "Failed to find ReadPlayerInput script."); }
private void Start() { Assert.IsNotNull(firePoint, "Failed to find FirePoint component."); playerRigidbody = GetComponent <Rigidbody2D>(); Assert.IsNotNull(playerRigidbody, "Failed to find Rigidbody2D script."); playerCollider = GetComponent <CapsuleCollider2D>(); Assert.IsNotNull(playerCollider, "Failed to find CapsuleCollider2D component."); playerMovement = GetComponent <PlayerMovement>(); Assert.IsNotNull(playerMovement, "Failed to find PlayerMovement script."); animator = GetComponent <Animator>(); Assert.IsNotNull(animator, "Failed to find Animator component."); readPlayerInput = GetComponentInParent <ReadPlayerInput>(); Assert.IsNotNull(readPlayerInput, "Failed to find ReadPlayerInput script."); }
private void Start() { Assert.IsNotNull(laserPrefab, "Failed to find LaserPrefab GameObject."); Assert.IsNotNull(minePrefab, "Failed to find MinePrefab GameObject."); Assert.IsNotNull(waterBlastPrefab, "Failed to find WaterBlastPrefab GameObject."); Assert.IsNotNull(firePoint, "Failed to find FirePoint component."); animator = GetComponent <Animator>(); Assert.IsNotNull(animator, "Failed to find Animator component."); playerMovement = GetComponent <PlayerMovement>(); Assert.IsNotNull(playerMovement, "Failed to find PlayerMovement script."); readPlayerInput = GetComponentInParent <ReadPlayerInput>(); Assert.IsNotNull(readPlayerInput, "Failed to find ReadPlayerInput script."); }