This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CardManager : MonoBehaviour | |
{ | |
[SerializeField] private GameObject cardPrefab; | |
[SerializeField] private int numberOfCards = 10; | |
[SerializeField] private float stackSpacing = 0.2f; // Adjust to control spacing between cards | |
[SerializeField] private Vector2 stackPosition = new Vector2(0, -3); // Bottom of the screen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SwingingArmMotion : MonoBehaviour | |
{ | |
// Game Objects | |
[SerializeField] private GameObject LeftHand; | |
[SerializeField] private GameObject RightHand; | |
[SerializeField] private GameObject MainCamera; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test if a number is prime | |
def is_prime(x): | |
for n in range(2, x - 1): | |
if x % n == 0: | |
return False | |
else: | |
return True | |
# test # print is_prime(17) |