コード例 #1
0
    // Use this for initialization
    void Start()
    {
        rigi = GetComponent <Rigidbody2D> ();
        GameObject pLaserSight = (GameObject)Instantiate(lasersightPrefab, Vector3.zero, Quaternion.identity);

        laserSight = pLaserSight.GetComponent <LineRenderer>();
        Hooking    = GetComponent <GrappingHook>();
    }
コード例 #2
0
ファイル: Climb.cs プロジェクト: Guillem212/ProjectStealth
 // Start is called before the first frame update
 void Start()
 {
     hookScript = GetComponent <GrappingHook>();
     animator   = GetComponent <ArmsAnimatorBehabior>();
 }