Пример #1
0
    void Start()
    {
        rend = this.gameObject.AddComponent <LineRenderer>();
        rend.positionCount = arcLength;
        rend.material      = lineMaterial;
        rend.textureMode   = LineTextureMode.Tile;
        rend.startWidth    = startWidth;
        rend.endWidth      = endWidth;

        slingShooter    = pullPoint.GetComponent <SlingShooter>();
        projectileSpeed = slingShooter.projectileSpeed;
        slingShooter.onPullReset.AddListener(OnPullReturn);
    }