// Start is called before the first frame update void Start() { lr = GetComponent <LineRenderer>(); g = Mathf.Abs(Physics.gravity.y); atc = FindObjectOfType <MainATC>(); t = transform; if (atc != null) { RenderArc(); } else { Debug.Log("atc null in line renderer"); } if (atc.getPlayerTag() == "BallistaP1") { player = 1; } else { player = 2; } //GetComponent<ASL.ASLObject>().SetFloatCallbackLocally(SendFloatBullet); }
private void Start() { otc = FindObjectOfType <OtherController>(); matc = FindObjectOfType <MainATC>(); if (otc == null) { Debug.Log("Cant find otherController"); } ballistaTag = string.Empty; }
//bool isOwn = false; // Start is called before the first frame update void Start() { sb = FindObjectOfType <SpawnBallista>(); mtc = FindObjectOfType <MainATC>(); gs = FindObjectOfType <GameSession>(); otc = FindObjectOfType <OtherController>(); bt = sb.getBallistaTag(); if ((otc.isPlayerHoster() && bt == "BallistaP1") || otc.isPlayerResolver() && bt == "BallistaP2") { //isOwn = true; InvokeRepeating("setPlank", 2.0f, 0.1f); Debug.Log("Plank setting owned"); } }