// Use this for initialization void Start() { scriptGameMaster = GameObject.Find("ControllerGame").GetComponent <ScriptGameMaster>(); layerMask = 1 << activeLayer; //lineRenderer = GetComponent<LineRenderer>(); if (Random.value >= 0.5) { oscillationMode = OscillationMode.Ascending; } else { oscillationMode = OscillationMode.Descending; } currentAngle = (int)Mathf.Floor(Random.value * (finishAngle - startAngle) - finishAngle); if (scriptCharacterSheet == scriptGameMaster.selectedSheet) { playerKeyCode = KeyCode.Q; } else if (scriptCharacterSheet == scriptGameMaster.opposingSheet) { playerKeyCode = KeyCode.P; } else { Debug.Log("Invalid Player"); } }
void Awake() { _instance = this; }