This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void putToFloor(){ | |
RaycastHit2D hit = Physics2D.Raycast(transform.position, -Vector3.up); | |
if (hit.collider != null) | |
{ | |
transform.position = hit.point; | |
Debug.Log ("Putting here: "+transform.position); | |
} | |
Debug.Log ("Found nothing to hit: " + hit.point); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sprite tempSprite; | |
SpriteRenderer changeSprite; | |
void Update(){ | |
changeSprite = gameObject.GetComponent<SpriteRenderer>(); | |
switch(type){ | |
case 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-03-02T02:37:26.635Z","extensionVersion":"v3.4.3"} |
NewerOlder