Example #1
0
    void Awake()
    {
        S = this;
        Transform launchPointTrans = transform.Find("LaunchPoint");

        launchPoint = launchPointTrans.gameObject;
        launchPoint.SetActive(false);
        launchPos = launchPointTrans.position;

        // Slingshot band GOs and components
        band     = S.GetComponent <LineRenderer>();
        leftArm  = GameObject.Find("LeftArm");
        rightArm = GameObject.Find("RightArm");
    }