Journal Entry 6


Date: 12.3.

Activity: did the Scripting Walkthrough P2

Time: 3h

Problems:

- I still don't really understand the relation between the script object and gameObject

- I don't know, why I can't access the DestructibleColumn_Whole directly from the script as a child of the column, but the broken pieces can be accessed via 

```

        foreach (Transform child in transform)  {

            GameObject childBody = child.gameObject;  ... }

```

I understand the machanic of getting something via a public variable, but don't see why (or if) a have to use it here.

Files

build - Scripting1.2 - columns.zip 84 MB
Mar 12, 2023

Get Project T

Leave a comment

Log in with itch.io to leave a comment.