void Start() { hp = maxhp; hpstatus = GetComponentInChildren <hpui>(); score = GameObject.Find("score").GetComponent <score>(); Flag = 0; }
// Use this for initialization void Start() { PlayerRigid = Player.GetComponent <Rigidbody>(); Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; PlayerTransform = GetComponent <Transform>(); CameraTransform = Camera.GetComponent <Transform>(); hp = maxhp; hpstatus = GetComponentInChildren <hpui>(); gamestatus = GetComponent <GameStatus>(); GetCoin = GetComponent <AudioSource>(); DamageEffect = GetComponentInChildren <PostProcessingBehaviour>(); }