void Start() { input = InputManagement.Instance; var angles = transform.eulerAngles; x = angles.x; y = angles.y; }
// int chargeDirection = 1; void Start() { rb = GetComponent <Rigidbody>(); input = InputManagement.Instance; gameBalls = GameObject.FindObjectsOfType <BallEntity>(); if (playCamera) { playCamera.onCameraDirectionUpdate += dir => strikeDirection = dir; } }
void Awake() { if (instance == null) { instance = this; } else { Destroy(this); } mouseAxis = new Vector2(0f, 0f); }