// Use this for initialization void Start() { persistent = GameObject.Find("Persistent(Clone)").gameObject.GetComponent<script_persistent>(); }
// Use this for initialization // On initialize, player is grounded and unmoving, is not rising and has no balloon void Start() { leftColliderScript = transform.Find("left_collider").GetComponent<script_player_horizontal_col>(); rightColliderScript = transform.Find("right_collider").GetComponent<script_player_horizontal_col>(); sprite = transform.GetComponent<OTAnimatingSprite>(); sprite.speed = 0; grounded = false; keep_rising = false; has_balloon = 0; persistentScript = GameObject.Find("Persistent(Clone)").GetComponent<script_persistent>(); }