コード例 #1
0
    //public Animator animator;


    // Start is called before the first frame update
    void Start()
    {
        rb        = gameObject.GetComponent <Rigidbody2D>();
        throwHook = FindObjectOfType <throwhook>(); // find throwhook script
        fell      = false;
    }
コード例 #2
0
ファイル: PlayerHealth.cs プロジェクト: BigDoot/GrappleHero
 void Start()
 {
     respawnPt = start;
     player    = FindObjectOfType <PlayerMovement>();
     throwHook = FindObjectOfType <throwhook>(); // find throwhook script
 }
コード例 #3
0
    // private GameObject enemy;

    void Start()
    {
        player    = FindObjectOfType <PlayerMovement>();
        throwHook = FindObjectOfType <throwhook>(); // find throwhook script
        //  enemy = GameObject.FindGameObjectWithTag("Enemy");
    }