コード例 #1
0
ファイル: SimpleZRDrive.cs プロジェクト: kyapp69/hovering
    void Start()
    {
        input = gameObject.AddComponent <InputAggregator>();

        rb = GetComponent <Rigidbody>();

        contactTracker = ContactTracker.AttachOrFind(gameObject);
    }
コード例 #2
0
    void Start()
    {
        rb = GetComponentInParent <Rigidbody>();

        contactTracker = ContactTracker.AttachOrFind(transform.root.gameObject);
    }